diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-06 15:16:12 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-06 18:52:05 +0100 |
commit | 6c88217c1935fcbf864f0cbcddae105eda7e6bb4 (patch) | |
tree | 7e30cd283c855ea9411dbdbcb5d32c85641db159 /openbsc/tests/testsuite.at | |
parent | d5b3ca621b26a70c16cc61fcf9cd4ef0a15fce15 (diff) |
tests: Introduce running tests with GNU autotest in OpenBSC
The quality of the tests is of different value but it is good to
get started and improve from here.
Diffstat (limited to 'openbsc/tests/testsuite.at')
-rw-r--r-- | openbsc/tests/testsuite.at | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/openbsc/tests/testsuite.at b/openbsc/tests/testsuite.at new file mode 100644 index 000000000..fb57d07b0 --- /dev/null +++ b/openbsc/tests/testsuite.at @@ -0,0 +1,39 @@ +AT_INIT +AT_BANNER([Regression tests.]) + +AT_SETUP([gsm0408]) +AT_KEYWORDS([gsm0408]) +cat $abs_srcdir/gsm0408/gsm0408_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/gsm0408/gsm0408_test], [], [expout], [ignore]) +AT_CLEANUP + +AT_SETUP([db]) +AT_KEYWORDS([db]) +cat $abs_srcdir/db/db_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/db/db_test], [], [expout], [ignore]) +AT_CLEANUP + +AT_SETUP([channel]) +AT_KEYWORDS([channel]) +cat $abs_srcdir/channel/channel_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/channel/channel_test], [], [expout], [ignore]) +AT_CLEANUP + +AT_SETUP([mgcp]) +AT_KEYWORDS([mgcp]) +cat $abs_srcdir/mgcp/mgcp_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/mgcp/mgcp_test], [], [expout], [ignore]) +AT_CLEANUP + +AT_SETUP([gprs]) +AT_KEYWORDS([gprs]) +cat $abs_srcdir/gprs/gprs_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/gprs/gprs_test], [], [expout], [ignore]) +AT_CLEANUP + +m4_ifdef([ENABLE_NAT_TEST],[ +AT_SETUP([bsc-nat]) +AT_KEYWORDS([bsc-nat]) +cat $abs_srcdir/bsc-nat/bsc_nat_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/bsc-nat/bsc_nat_test], [], [expout], [ignore]) +AT_CLEANUP]) |