Neels Hofmeyr | 00c0697 | 2017-01-31 01:19:27 +0100 | [diff] [blame] | 1 | AT_INIT |
| 2 | AT_BANNER([Regression tests.]) |
| 3 | |
| 4 | AT_SETUP([auc]) |
| 5 | AT_KEYWORDS([auc]) |
Neels Hofmeyr | 4436dec | 2017-02-22 01:49:36 +0100 | [diff] [blame] | 6 | cat $abs_srcdir/auc/auc_test.ok > expout |
| 7 | cat $abs_srcdir/auc/auc_test.err > experr |
| 8 | AT_CHECK([$abs_top_builddir/tests/auc/auc_test], [], [expout], [experr]) |
Neels Hofmeyr | 00c0697 | 2017-01-31 01:19:27 +0100 | [diff] [blame] | 9 | AT_CLEANUP |
Neels Hofmeyr | 6b883f7 | 2017-01-31 16:40:28 +0100 | [diff] [blame] | 10 | |
| 11 | AT_SETUP([auc_ts_55_205_test_sets]) |
| 12 | AT_KEYWORDS([auc_ts_55_205_test_sets]) |
| 13 | cat $abs_srcdir/auc/auc_ts_55_205_test_sets.ok > expout |
| 14 | cat $abs_srcdir/auc/auc_ts_55_205_test_sets.err > experr |
| 15 | AT_CHECK([$abs_top_builddir/tests/auc/auc_ts_55_205_test_sets], [], [expout], [experr]) |
| 16 | AT_CLEANUP |
Neels Hofmeyr | cab2fcd | 2017-03-15 00:07:43 +0100 | [diff] [blame] | 17 | |
Neels Hofmeyr | b2553eb | 2019-11-20 02:36:45 +0100 | [diff] [blame^] | 18 | AT_SETUP([gsup]) |
| 19 | AT_KEYWORDS([gsup]) |
| 20 | cat $abs_srcdir/gsup/gsup_test.ok > expout |
| 21 | cat $abs_srcdir/gsup/gsup_test.err > experr |
| 22 | AT_CHECK([$abs_top_builddir/tests/gsup/gsup_test], [], [expout], [experr]) |
| 23 | AT_CLEANUP |
| 24 | |
Neels Hofmeyr | cab2fcd | 2017-03-15 00:07:43 +0100 | [diff] [blame] | 25 | AT_SETUP([gsup_server]) |
| 26 | AT_KEYWORDS([gsup_server]) |
| 27 | cat $abs_srcdir/gsup_server/gsup_server_test.ok > expout |
| 28 | cat $abs_srcdir/gsup_server/gsup_server_test.err > experr |
| 29 | AT_CHECK([$abs_top_builddir/tests/gsup_server/gsup_server_test], [], [expout], [experr]) |
| 30 | AT_CLEANUP |
Neels Hofmeyr | 9850946 | 2017-10-09 17:28:53 +0200 | [diff] [blame] | 31 | |
| 32 | AT_SETUP([db]) |
| 33 | AT_KEYWORDS([db]) |
| 34 | cat $abs_srcdir/db/db_test.ok > expout |
| 35 | cat $abs_srcdir/db/db_test.err > experr |
| 36 | sqlite3 db_test.db < $abs_top_srcdir/sql/hlr.sql |
Oliver Smith | 63de00c | 2019-06-04 12:18:53 +0200 | [diff] [blame] | 37 | AT_CHECK([$abs_top_builddir/tests/db/db_test], [], [expout], [experr]) |
Neels Hofmeyr | 9850946 | 2017-10-09 17:28:53 +0200 | [diff] [blame] | 38 | AT_CLEANUP |
Neels Hofmeyr | 5b65461 | 2019-10-31 02:03:48 +0100 | [diff] [blame] | 39 | |
Oliver Smith | 4359b88 | 2019-11-12 13:32:27 +0100 | [diff] [blame] | 40 | # AT_SKIP_IF: disable for old sqlite versions, because the way we dump tables in the test doesn't work with it. |
| 41 | # https://lists.osmocom.org/pipermail/openbsc/2019-November/013063.html |
Neels Hofmeyr | 5b65461 | 2019-10-31 02:03:48 +0100 | [diff] [blame] | 42 | AT_SETUP([db_upgrade]) |
Oliver Smith | 4359b88 | 2019-11-12 13:32:27 +0100 | [diff] [blame] | 43 | AT_SKIP_IF([ ! pkg-config sqlite3 --exists --atleast-version=3.16.2 ]) |
Neels Hofmeyr | 5b65461 | 2019-10-31 02:03:48 +0100 | [diff] [blame] | 44 | AT_KEYWORDS([db_upgrade]) |
| 45 | cat $abs_srcdir/db_upgrade/db_upgrade_test.ok > expout |
| 46 | cat $abs_srcdir/db_upgrade/db_upgrade_test.err > experr |
| 47 | AT_CHECK([$abs_srcdir/db_upgrade/db_upgrade_test.sh $abs_srcdir/db_upgrade $abs_builddir/db_upgrade], [], [expout], [experr]) |
| 48 | AT_CLEANUP |
Oliver Smith | bf7deda | 2019-11-20 10:56:35 +0100 | [diff] [blame] | 49 | |
Oliver Smith | 3a9f267 | 2019-11-20 10:56:35 +0100 | [diff] [blame] | 50 | AT_SETUP([mdns]) |
| 51 | AT_KEYWORDS([mdns]) |
| 52 | cat $abs_srcdir/mslookup/mdns_test.err > experr |
| 53 | AT_CHECK([$abs_top_builddir/tests/mslookup/mdns_test], [0], [ignore], [experr]) |
| 54 | AT_CLEANUP |
| 55 | |
Oliver Smith | bf7deda | 2019-11-20 10:56:35 +0100 | [diff] [blame] | 56 | AT_SETUP([mslookup]) |
| 57 | AT_KEYWORDS([mslookup]) |
| 58 | cat $abs_srcdir/mslookup/mslookup_test.err > experr |
| 59 | AT_CHECK([$abs_top_builddir/tests/mslookup/mslookup_test], [0], [ignore], [experr]) |
| 60 | AT_CLEANUP |
| 61 | |
| 62 | AT_SETUP([mslookup_client]) |
| 63 | AT_KEYWORDS([mslookup_client]) |
| 64 | cat $abs_srcdir/mslookup/mslookup_client_test.err > experr |
| 65 | AT_CHECK([$abs_top_builddir/tests/mslookup/mslookup_client_test], [0], [ignore], [experr]) |
| 66 | AT_CLEANUP |
Oliver Smith | 3a9f267 | 2019-11-20 10:56:35 +0100 | [diff] [blame] | 67 | |
Oliver Smith | f0e90e6 | 2020-01-30 09:55:00 +0100 | [diff] [blame] | 68 | # AT_SKIP_IF: disable without --enable-mslookup-client-mdns-test (OS#4385) |
Oliver Smith | 3a9f267 | 2019-11-20 10:56:35 +0100 | [diff] [blame] | 69 | AT_SETUP([mslookup_client_mdns]) |
Oliver Smith | f0e90e6 | 2020-01-30 09:55:00 +0100 | [diff] [blame] | 70 | AT_SKIP_IF([! test -e $abs_top_builddir/tests/mslookup/mslookup_client_mdns_test ]) |
Oliver Smith | 3a9f267 | 2019-11-20 10:56:35 +0100 | [diff] [blame] | 71 | AT_KEYWORDS([mslookup_client_mdns]) |
| 72 | cat $abs_srcdir/mslookup/mslookup_client_mdns_test.err > experr |
| 73 | AT_CHECK([$abs_top_builddir/tests/mslookup/mslookup_client_mdns_test], [0], [ignore], [experr]) |
| 74 | AT_CLEANUP |