laforge submitted this change.
tests/testsuite.at: fix invalid if-endif syntax
`make check` currently fails if libosmocore is configured with
`--disable-msgfile`. The reason is that the testsuite tries to
execte a binary that does not exist. This is happening because
the if-endif syntax is invalid and thus ignored.
Change-Id: I81e044dc0bda4674c0d0dc46118d46816712a76c
---
M tests/testsuite.at
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/testsuite.at b/tests/testsuite.at
index f22ca5a..82758b7 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -81,13 +81,12 @@
AT_CHECK([$abs_top_builddir/tests/gea/gea_test], [0], [expout])
AT_CLEANUP
-if ENABLE_MSGFILE
AT_SETUP([msgfile])
AT_KEYWORDS([msgfile])
+AT_SKIP_IF([test ! -e $abs_top_builddir/tests/msgfile/msgfile_test])
cat $abs_srcdir/msgfile/msgfile_test.ok > expout
AT_CHECK([$abs_top_builddir/tests/msgfile/msgfile_test $abs_srcdir/msgfile/msgconfig.cfg], [0], [expout])
AT_CLEANUP
-endif
AT_SETUP([sms])
AT_KEYWORDS([sms])
To view, visit change 41362. To unsubscribe, or for help writing mail filters, visit settings.