Attention is currently required from: lynxis lazus, pespin.
1 comment:
File tests/testsuite.at:
Patch Set #1, 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: […]
@pespin@sysmocom.de 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 change 41362. To unsubscribe, or for help writing mail filters, visit settings.