Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 1 | SUBDIRS = \ |
| 2 | gsm0408 \ |
| 3 | db \ |
| 4 | channel \ |
| 5 | mgcp \ |
| 6 | gprs \ |
| 7 | abis \ |
| 8 | gbproxy \ |
| 9 | trau \ |
| 10 | subscr \ |
| 11 | mm_auth \ |
Philipp | b4cb838 | 2016-09-29 17:01:57 +0200 | [diff] [blame] | 12 | nanobts_omlattr \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 13 | $(NULL) |
Philipp | 22611be | 2016-08-10 12:08:03 +0200 | [diff] [blame] | 14 | |
Holger Hans Peter Freyther | 30e1ae9 | 2010-07-30 02:53:14 +0800 | [diff] [blame] | 15 | if BUILD_NAT |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 16 | SUBDIRS += \ |
| 17 | bsc-nat \ |
| 18 | bsc-nat-trie \ |
| 19 | $(NULL) |
Holger Hans Peter Freyther | 30e1ae9 | 2010-07-30 02:53:14 +0800 | [diff] [blame] | 20 | endif |
Jacob Erlbeck | 946d141 | 2013-09-17 13:59:29 +0200 | [diff] [blame] | 21 | if BUILD_BSC |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 22 | SUBDIRS += \ |
| 23 | bsc \ |
| 24 | $(NULL) |
Jacob Erlbeck | 946d141 | 2013-09-17 13:59:29 +0200 | [diff] [blame] | 25 | endif |
Holger Hans Peter Freyther | a7328a5 | 2013-07-13 17:09:56 +0200 | [diff] [blame] | 26 | if BUILD_SMPP |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 27 | SUBDIRS += \ |
| 28 | smpp \ |
| 29 | $(NULL) |
Holger Hans Peter Freyther | a7328a5 | 2013-07-13 17:09:56 +0200 | [diff] [blame] | 30 | endif |
Holger Hans Peter Freyther | 68c6f88 | 2014-09-30 09:10:25 +0200 | [diff] [blame] | 31 | if HAVE_LIBGTP |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 32 | SUBDIRS += \ |
| 33 | gtphub \ |
| 34 | $(NULL) |
Holger Hans Peter Freyther | 68c6f88 | 2014-09-30 09:10:25 +0200 | [diff] [blame] | 35 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 36 | if HAVE_LIBCARES |
| 37 | SUBDIRS += \ |
| 38 | sgsn \ |
| 39 | oap \ |
Philipp | ea291e3 | 2016-09-28 11:33:54 +0200 | [diff] [blame] | 40 | xid \ |
| 41 | sndcp_xid \ |
| 42 | slhc \ |
| 43 | v42bis \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 44 | $(NULL) |
| 45 | endif |
| 46 | endif |
Holger Hans Peter Freyther | 6c88217 | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 47 | |
| 48 | # The `:;' works around a Bash 3.2 bug when the output is not writeable. |
Holger Hans Peter Freyther | 93ef33e | 2012-01-09 22:53:04 +0100 | [diff] [blame] | 49 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac |
Holger Hans Peter Freyther | 6c88217 | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 50 | :;{ \ |
| 51 | echo '# Signature of the current package.' && \ |
| 52 | echo 'm4_define([AT_PACKAGE_NAME],' && \ |
| 53 | echo ' [$(PACKAGE_NAME)])' && \ |
| 54 | echo 'm4_define([AT_PACKAGE_TARNAME],' && \ |
| 55 | echo ' [$(PACKAGE_TARNAME)])' && \ |
| 56 | echo 'm4_define([AT_PACKAGE_VERSION],' && \ |
| 57 | echo ' [$(PACKAGE_VERSION)])' && \ |
| 58 | echo 'm4_define([AT_PACKAGE_STRING],' && \ |
| 59 | echo ' [$(PACKAGE_STRING)])' && \ |
| 60 | echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \ |
| 61 | echo ' [$(PACKAGE_BUGREPORT)])'; \ |
| 62 | echo 'm4_define([AT_PACKAGE_URL],' && \ |
| 63 | echo ' [$(PACKAGE_URL)])'; \ |
Holger Hans Peter Freyther | 03ff1c8 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 64 | } >'$(srcdir)/package.m4' |
Holger Hans Peter Freyther | 6c88217 | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 65 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 66 | EXTRA_DIST = \ |
| 67 | testsuite.at \ |
| 68 | $(srcdir)/package.m4 \ |
| 69 | $(TESTSUITE) \ |
| 70 | vty_test_runner.py \ |
| 71 | ctrl_test_runner.py \ |
| 72 | smpp_test_runner.py \ |
| 73 | $(NULL) |
| 74 | |
Holger Hans Peter Freyther | 03ff1c8 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 75 | TESTSUITE = $(srcdir)/testsuite |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 76 | |
| 77 | DISTCLEANFILES = \ |
| 78 | atconfig \ |
| 79 | $(NULL) |
Holger Hans Peter Freyther | 6c88217 | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 80 | |
Holger Hans Peter Freyther | dd588ae | 2014-08-22 00:29:04 +0200 | [diff] [blame] | 81 | if ENABLE_EXT_TESTS |
Katerina Barone-Adesi | e0aee7a | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 82 | python-tests: $(BUILT_SOURCES) |
| 83 | osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v |
| 84 | osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v |
Holger Hans Peter Freyther | eb0acb6 | 2013-06-24 15:47:34 +0200 | [diff] [blame] | 85 | $(PYTHON) $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v |
Jacob Erlbeck | 0760a83 | 2013-09-16 11:20:28 +0200 | [diff] [blame] | 86 | $(PYTHON) $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v |
Holger Hans Peter Freyther | ed0d4f6 | 2014-03-06 23:43:13 +0100 | [diff] [blame] | 87 | if BUILD_SMPP |
| 88 | $(PYTHON) $(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v |
| 89 | endif |
Neels Hofmeyr | a4cd7f8 | 2017-07-20 17:57:37 +0200 | [diff] [blame^] | 90 | rm -f $(top_builddir)/hlr.sqlite3 $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count |
Katerina Barone-Adesi | e0aee7a | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 91 | else |
| 92 | python-tests: $(BUILT_SOURCES) |
| 93 | echo "Not running python-based tests (determined at configure-time)" |
| 94 | endif |
| 95 | |
Holger Hans Peter Freyther | 6c88217 | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 96 | check-local: atconfig $(TESTSUITE) |
| 97 | $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) |
Katerina Barone-Adesi | e0aee7a | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 98 | $(MAKE) $(AM_MAKEFLAGS) python-tests |
Holger Hans Peter Freyther | 6c88217 | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 99 | |
| 100 | installcheck-local: atconfig $(TESTSUITE) |
| 101 | $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \ |
| 102 | $(TESTSUITEFLAGS) |
| 103 | |
| 104 | clean-local: |
| 105 | test ! -f '$(TESTSUITE)' || \ |
| 106 | $(SHELL) '$(TESTSUITE)' --clean |
Holger Hans Peter Freyther | 6c88217 | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 107 | |
| 108 | AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te |
| 109 | AUTOTEST = $(AUTOM4TE) --language=autotest |
Holger Hans Peter Freyther | 03ff1c8 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 110 | $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 |
Holger Hans Peter Freyther | 6c88217 | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 111 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at |
| 112 | mv $@.tmp $@ |