Detect jq at build time

Detect whether and where the jq utility is available at build time, so
that it can be used in system tests.  If the tool is not found, specific
checks employing it will be skipped.

(cherry picked from commit 273b4bbfd7)
This commit is contained in:
Michał Kępień 2025-10-25 07:37:48 +02:00
parent 1040282de7
commit 0ca76b6716
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1 @@
@JQ@

View file

@ -327,8 +327,9 @@ AC_SUBST([PYTEST])
AM_CONDITIONAL([HAVE_PYTEST], [test -n "$PYTEST"])
#
# xsltproc is optional, it is used only by system test scripts.
# Optional utilities, only used by system tests.
#
AC_PATH_PROG([JQ], [jq])
AC_PATH_PROG([XSLTPROC], [xsltproc])
#
@ -1643,6 +1644,7 @@ AC_CONFIG_FILES([bin/tests/Makefile
bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR
bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR
bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE
bin/tests/system/isctest/vars/.ac_vars/JQ
bin/tests/system/isctest/vars/.ac_vars/SHELL
bin/tests/system/isctest/vars/.ac_vars/PYTHON
bin/tests/system/isctest/vars/.ac_vars/PERL