laforge submitted this change.

View Change

Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve laforge: Looks good to me, approved pespin: Looks good to me, but someone else must approve
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.

Gerrit-MessageType: merged
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I81e044dc0bda4674c0d0dc46118d46816712a76c
Gerrit-Change-Number: 41362
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>