Andreas Eversberg | 2c202cd | 2013-12-06 16:59:10 +0100 | [diff] [blame^] | 1 | SUBDIRS = gsm0408 db channel mgcp gprs si abis gbproxy trau |
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 | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 15 | |
| 16 | # 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] | 17 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 18 | :;{ \ |
| 19 | echo '# Signature of the current package.' && \ |
| 20 | echo 'm4_define([AT_PACKAGE_NAME],' && \ |
| 21 | echo ' [$(PACKAGE_NAME)])' && \ |
| 22 | echo 'm4_define([AT_PACKAGE_TARNAME],' && \ |
| 23 | echo ' [$(PACKAGE_TARNAME)])' && \ |
| 24 | echo 'm4_define([AT_PACKAGE_VERSION],' && \ |
| 25 | echo ' [$(PACKAGE_VERSION)])' && \ |
| 26 | echo 'm4_define([AT_PACKAGE_STRING],' && \ |
| 27 | echo ' [$(PACKAGE_STRING)])' && \ |
| 28 | echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \ |
| 29 | echo ' [$(PACKAGE_BUGREPORT)])'; \ |
| 30 | echo 'm4_define([AT_PACKAGE_URL],' && \ |
| 31 | echo ' [$(PACKAGE_URL)])'; \ |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 32 | } >'$(srcdir)/package.m4' |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 33 | |
Jacob Erlbeck | 5741e1f | 2013-09-16 11:20:28 +0200 | [diff] [blame] | 34 | EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) vty_test_runner.py ctrl_test_runner.py |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 35 | TESTSUITE = $(srcdir)/testsuite |
Daniel Willmann | d5124e7 | 2012-12-26 12:25:36 +0100 | [diff] [blame] | 36 | DISTCLEANFILES = atconfig |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 37 | |
Katerina Barone-Adesi | ad5fb00 | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 38 | if ENABLE_VTY_TESTS |
| 39 | python-tests: $(BUILT_SOURCES) |
| 40 | osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v |
| 41 | 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] | 42 | $(PYTHON) $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v |
Jacob Erlbeck | 5741e1f | 2013-09-16 11:20:28 +0200 | [diff] [blame] | 43 | $(PYTHON) $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v |
Katerina Barone-Adesi | ad5fb00 | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 44 | rm -f $(top_builddir)/hlr.sqlite3 |
| 45 | else |
| 46 | python-tests: $(BUILT_SOURCES) |
| 47 | echo "Not running python-based tests (determined at configure-time)" |
| 48 | endif |
| 49 | |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 50 | check-local: atconfig $(TESTSUITE) |
| 51 | $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) |
Katerina Barone-Adesi | ad5fb00 | 2013-04-05 17:36:09 +0200 | [diff] [blame] | 52 | $(MAKE) $(AM_MAKEFLAGS) python-tests |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 53 | |
| 54 | installcheck-local: atconfig $(TESTSUITE) |
| 55 | $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \ |
| 56 | $(TESTSUITEFLAGS) |
| 57 | |
| 58 | clean-local: |
| 59 | test ! -f '$(TESTSUITE)' || \ |
| 60 | $(SHELL) '$(TESTSUITE)' --clean |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 61 | |
| 62 | AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te |
| 63 | AUTOTEST = $(AUTOM4TE) --language=autotest |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 64 | $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 65 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at |
| 66 | mv $@.tmp $@ |