diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-13 17:09:56 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-27 20:03:10 +0200 |
commit | a7328a5642566bf7b07c6d0e58dfe5da018873a5 (patch) | |
tree | 7242bc7481b70b956a7e7b373b4d285226afe2a3 /openbsc/tests/testsuite.at | |
parent | 5ecbc93656edf49c8042b269299e31e157763511 (diff) |
smpp: Move the coding/mode detection into a utils file
Make sure to not ever have issues with this code again, move the
utility code to a new file and create a basic testcase. The method
currently has 100% line and branch coverage. My initial patched
missed the smpp_utils.c file and I re-did the copying (and verifying
the branch coverage)
Diffstat (limited to 'openbsc/tests/testsuite.at')
-rw-r--r-- | openbsc/tests/testsuite.at | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/tests/testsuite.at b/openbsc/tests/testsuite.at index e649f039e..ea3fa1ce5 100644 --- a/openbsc/tests/testsuite.at +++ b/openbsc/tests/testsuite.at @@ -40,6 +40,14 @@ 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 +AT_SETUP([smpp]) +AT_KEYWORDS([smpp]) +AT_CHECK([test "$enable_smpp_test" != no || exit 77]) +cat $abs_srcdir/smpp/smpp_test.ok > expout +cat $abs_srcdir/smpp/smpp_test.err > experr +AT_CHECK([$abs_top_builddir/tests/smpp/smpp_test], [], [expout], [experr]) +AT_CLEANUP + AT_SETUP([si]) AT_KEYWORDS([si]) cat $abs_srcdir/si/si_test.ok > expout |