diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-07-04 23:08:44 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-07-12 23:17:10 +0000 |
commit | 29b9206e804e8e5d5f6ea6f9d8c1f8af35332480 (patch) | |
tree | 77eed5bde035b276b63f92c0f23e944049e59897 /tests/Makefile.am | |
parent | 9e3c66b1814246f6c06a6f78975f54dfe9e2cf8c (diff) |
move openbsc/* to repos root
This is the first step in creating this repository from the legacy openbsc.git.
Like all other Osmocom repositories, keep the autoconf and automake files in
the repository root. openbsc.git has been the sole exception, which ends now.
Change-Id: I9c6f2a448d9cb1cc088cf1cf6918b69d7e69b4e7
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 000000000..9cbc1c172 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,112 @@ +SUBDIRS = \ + gsm0408 \ + db \ + channel \ + mgcp \ + gprs \ + abis \ + gbproxy \ + trau \ + subscr \ + mm_auth \ + nanobts_omlattr \ + $(NULL) + +if BUILD_NAT +SUBDIRS += \ + bsc-nat \ + bsc-nat-trie \ + $(NULL) +endif +if BUILD_BSC +SUBDIRS += \ + bsc \ + $(NULL) +endif +if BUILD_SMPP +SUBDIRS += \ + smpp \ + $(NULL) +endif +if HAVE_LIBGTP +SUBDIRS += \ + gtphub \ + $(NULL) + +if HAVE_LIBCARES +SUBDIRS += \ + sgsn \ + oap \ + xid \ + sndcp_xid \ + slhc \ + v42bis \ + $(NULL) +endif +endif + +# The `:;' works around a Bash 3.2 bug when the output is not writeable. +$(srcdir)/package.m4: $(top_srcdir)/configure.ac + :;{ \ + echo '# Signature of the current package.' && \ + echo 'm4_define([AT_PACKAGE_NAME],' && \ + echo ' [$(PACKAGE_NAME)])' && \ + echo 'm4_define([AT_PACKAGE_TARNAME],' && \ + echo ' [$(PACKAGE_TARNAME)])' && \ + echo 'm4_define([AT_PACKAGE_VERSION],' && \ + echo ' [$(PACKAGE_VERSION)])' && \ + echo 'm4_define([AT_PACKAGE_STRING],' && \ + echo ' [$(PACKAGE_STRING)])' && \ + echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \ + echo ' [$(PACKAGE_BUGREPORT)])'; \ + echo 'm4_define([AT_PACKAGE_URL],' && \ + echo ' [$(PACKAGE_URL)])'; \ + } >'$(srcdir)/package.m4' + +EXTRA_DIST = \ + testsuite.at \ + $(srcdir)/package.m4 \ + $(TESTSUITE) \ + vty_test_runner.py \ + ctrl_test_runner.py \ + smpp_test_runner.py \ + $(NULL) + +TESTSUITE = $(srcdir)/testsuite + +DISTCLEANFILES = \ + atconfig \ + $(NULL) + +if ENABLE_EXT_TESTS +python-tests: $(BUILT_SOURCES) + osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v + osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v + $(PYTHON) $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v + $(PYTHON) $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v +if BUILD_SMPP + $(PYTHON) $(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v +endif + rm -f $(top_builddir)/hlr.sqlite3 +else +python-tests: $(BUILT_SOURCES) + echo "Not running python-based tests (determined at configure-time)" +endif + +check-local: atconfig $(TESTSUITE) + $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) + $(MAKE) $(AM_MAKEFLAGS) python-tests + +installcheck-local: atconfig $(TESTSUITE) + $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \ + $(TESTSUITEFLAGS) + +clean-local: + test ! -f '$(TESTSUITE)' || \ + $(SHELL) '$(TESTSUITE)' --clean + +AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te +AUTOTEST = $(AUTOM4TE) --language=autotest +$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 + $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at + mv $@.tmp $@ |