Attention is currently required from: lynxis lazus, pespin.

fixeria has posted comments on this change by fixeria. ( 
https://gerrit.osmocom.org/c/libosmocore/+/41362?usp=email )

Change subject: tests/testsuite.at: fix invalid if-endif syntax
......................................................................


Patch Set 1:

(1 comment)

File tests/testsuite.at:

https://gerrit.osmocom.org/c/libosmocore/+/41362/comment/2d0fb0c4_e2314df4?usp=email
 :
PS1, Line 86: AT_SKIP_IF([test ! -e 
$abs_top_builddir/tests/msgfile/msgfile_test])
> We seem to be already supporting this with a variable, see 
> libosmocore/tests/testsuite.at: […]
@[email protected] if you grep for `ENABLE_URING`, for instance:

```
$ git grep -n ENABLE_URING tests/
tests/Makefile.am:765:  $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) 
ENABLE_URING=$(ENABLE_URING) ENABLE_URING_TESTS=$(ENABLE_URING_TESTS)
tests/Makefile.am:770:          $(TESTSUITEFLAGS) ENABLE_URING=$(ENABLE_URING) 
ENABLE_URING_TESTS=$(ENABLE_URING_TESTS)
tests/testsuite.at:564:AT_SKIP_IF([ test "$ENABLE_URING" != "yes" || test 
"$ENABLE_URING_TESTS" != "yes" ])
```

you'll see that these two variables are manually passed to the testsuite script.

```
763 check-local: atconfig $(TESTSUITE)
764         [ -e /proc/cpuinfo ] && cat /proc/cpuinfo
765         $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) 
ENABLE_URING=$(ENABLE_URING) ENABLE_URING_TESTS=$(ENABLE_URING_TESTS)           
                           
766         $(MAKE) $(AM_MAKEFLAGS) ext-tests
767
768 installcheck-local: atconfig $(TESTSUITE)
769         $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
770                 $(TESTSUITEFLAGS) ENABLE_URING=$(ENABLE_URING) 
ENABLE_URING_TESTS=$(ENABLE_URING_TESTS)

```

This means we would need to pass `ENABLE_MSGFILE` (and the other `ENABLE_` 
variables) manually. IMO, checking if a binary is present is a lot simpler and 
less error-prone.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41362?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I81e044dc0bda4674c0d0dc46118d46816712a76c
Gerrit-Change-Number: 41362
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Attention: lynxis lazus <[email protected]>
Gerrit-Comment-Date: Thu, 06 Nov 2025 15:36:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <[email protected]>
Comment-In-Reply-To: fixeria <[email protected]>
Comment-In-Reply-To: lynxis lazus <[email protected]>

Reply via email to