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.
This commit is contained in:
Michał Kępień 2025-10-25 07:37:48 +02:00
parent 08ccc8bea8
commit 273b4bbfd7
No known key found for this signature in database
4 changed files with 4 additions and 0 deletions

View file

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

View file

@ -28,6 +28,7 @@ configure_file(
foreach name, prog : {
'CURL': curl,
'FSTRM_CAPTURE': fstrm_capture,
'JQ': jq,
'NC': nc,
'PERL': perl,
'PYTEST': pytest,

View file

@ -41,6 +41,7 @@ def load_vars_from_build_files() -> Dict[str, str]:
for var in [
"CURL",
"FSTRM_CAPTURE",
"JQ",
"NC",
"PERL",
"PYTEST",

View file

@ -97,6 +97,7 @@ dtrace = find_program(['dtrace', dtrace_shim], required: false)
curl = find_program('curl', required: false)
fstrm_capture = find_program('fstrm_capture', required: false)
git = find_program('git', required: false)
jq = find_program('jq', required: false)
nc = find_program('nc', required: false)
python = find_program(['python3', 'python'], required: false)
xsltproc = find_program('xsltproc', required: false)