Neels Hofmeyr | 9f79664 | 2015-09-24 17:32:30 +0200 | [diff] [blame] | 1 | SUBDIRS = gsm0408 db channel mgcp gprs abis gbproxy trau subscr oap gtphub |
Holger Hans Peter Freyther | a8dffc1 | 2010-07-30 02:53:14 +0800 | [diff] [blame] | 2 | |
| 3 | if BUILD_NAT |
Holger Hans Peter Freyther | aaa3d08 | 2013-06-14 19:10:28 +0200 | [diff] [blame] | 4 | SUBDIRS += bsc-nat bsc-nat-trie |
Holger Hans Peter Freyther | a8dffc1 | 2010-07-30 02:53:14 +0800 | [diff] [blame] | 5 | endif |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 6 | |
Jacob Erlbeck | cc0d884 | 2013-09-17 13:59:29 +0200 | [diff] [blame] | 7 | if BUILD_BSC |
| 8 | SUBDIRS += bsc |
| 9 | endif |
| 10 | |
Holger Hans Peter Freyther | 5292edc | 2013-07-13 17:09:56 +0200 | [diff] [blame] | 11 | if BUILD_SMPP |
| 12 | SUBDIRS += smpp |
| 13 | endif |
| 14 | |
Holger Hans Peter Freyther | 232f621 | 2014-09-30 09:10:25 +0200 | [diff] [blame] | 15 | if HAVE_LIBGTP |
| 16 | SUBDIRS += sgsn |
| 17 | endif |
| 18 | |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 19 | |
| 20 | # The `:;' works around a Bash 3.2 bug when the output is not writeable. |
Holger Hans Peter Freyther | 34abf21 | 2012-01-09 22:53:04 +0100 | [diff] [blame] | 21 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 22 | :;{ \ |
| 23 | echo '# Signature of the current package.' && \ |
| 24 | echo 'm4_define([AT_PACKAGE_NAME],' && \ |
| 25 | echo ' [$(PACKAGE_NAME)])' && \ |
| 26 | echo 'm4_define([AT_PACKAGE_TARNAME],' && \ |
| 27 | echo ' [$(PACKAGE_TARNAME)])' && \ |
| 28 | echo 'm4_define([AT_PACKAGE_VERSION],' && \ |
| 29 | echo ' [$(PACKAGE_VERSION)])' && \ |
| 30 | echo 'm4_define([AT_PACKAGE_STRING],' && \ |
| 31 | echo ' [$(PACKAGE_STRING)])' && \ |
| 32 | echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \ |
| 33 | echo ' [$(PACKAGE_BUGREPORT)])'; \ |
| 34 | echo 'm4_define([AT_PACKAGE_URL],' && \ |
| 35 | echo ' [$(PACKAGE_URL)])'; \ |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 36 | } >'$(srcdir)/package.m4' |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 37 | |
Holger Hans Peter Freyther | 4a93f57 | 2014-03-06 23:43:13 +0100 | [diff] [blame] | 38 | EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) vty_test_runner.py ctrl_test_runner.py smpp_test_runner.py |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 39 | TESTSUITE = $(srcdir)/testsuite |
Daniel Willmann | d5124e7 | 2012-12-26 12:25:36 +0100 | [diff] [blame] | 40 | DISTCLEANFILES = atconfig |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 41 | |
Holger Hans Peter Freyther | 8fa08b0 | 2014-08-22 00:29:04 +0200 | [diff] [blame] | 42 | if ENABLE_EXT_TESTS |
Katerina Barone-Adesi | ad5fb00 | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 43 | python-tests: $(BUILT_SOURCES) |
| 44 | osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v |
| 45 | osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v |
Holger Hans Peter Freyther | 6539752 | 2013-06-24 15:47:34 +0200 | [diff] [blame] | 46 | $(PYTHON) $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v |
Jacob Erlbeck | 5741e1f | 2013-09-16 11:20:28 +0200 | [diff] [blame] | 47 | $(PYTHON) $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v |
Holger Hans Peter Freyther | 4a93f57 | 2014-03-06 23:43:13 +0100 | [diff] [blame] | 48 | if BUILD_SMPP |
| 49 | $(PYTHON) $(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v |
| 50 | endif |
Katerina Barone-Adesi | ad5fb00 | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 51 | rm -f $(top_builddir)/hlr.sqlite3 |
| 52 | else |
| 53 | python-tests: $(BUILT_SOURCES) |
| 54 | echo "Not running python-based tests (determined at configure-time)" |
| 55 | endif |
| 56 | |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 57 | check-local: atconfig $(TESTSUITE) |
| 58 | $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) |
Katerina Barone-Adesi | ad5fb00 | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 59 | $(MAKE) $(AM_MAKEFLAGS) python-tests |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 60 | |
| 61 | installcheck-local: atconfig $(TESTSUITE) |
| 62 | $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \ |
| 63 | $(TESTSUITEFLAGS) |
| 64 | |
| 65 | clean-local: |
| 66 | test ! -f '$(TESTSUITE)' || \ |
| 67 | $(SHELL) '$(TESTSUITE)' --clean |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 68 | |
| 69 | AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te |
| 70 | AUTOTEST = $(AUTOM4TE) --language=autotest |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 71 | $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 72 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at |
| 73 | mv $@.tmp $@ |