]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Detect jq at build time
authorMichał Kępień <michal@isc.org>
Sat, 25 Oct 2025 05:37:48 +0000 (07:37 +0200)
committerMichał Kępień <michal@isc.org>
Sat, 25 Oct 2025 05:37:48 +0000 (07:37 +0200)
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.

bin/tests/system/isctest/vars/.build_vars/JQ.in [new file with mode: 0644]
bin/tests/system/isctest/vars/.build_vars/meson.build
bin/tests/system/isctest/vars/build.py
meson.build

diff --git a/bin/tests/system/isctest/vars/.build_vars/JQ.in b/bin/tests/system/isctest/vars/.build_vars/JQ.in
new file mode 100644 (file)
index 0000000..156174f
--- /dev/null
@@ -0,0 +1 @@
+@JQ@
index fbe88da8d273f1bf5b648ca4ed9140cb75996fcc..deef5adda157676ff48ee2b318218936d8459ee7 100644 (file)
@@ -28,6 +28,7 @@ configure_file(
 foreach name, prog : {
     'CURL': curl,
     'FSTRM_CAPTURE': fstrm_capture,
+    'JQ': jq,
     'NC': nc,
     'PERL': perl,
     'PYTEST': pytest,
index 4071272c11b650d5a8a5c73aaeff8590ae268569..a71256bba3c6f65d1997988b632c862df90efa40 100644 (file)
@@ -41,6 +41,7 @@ def load_vars_from_build_files() -> Dict[str, str]:
     for var in [
         "CURL",
         "FSTRM_CAPTURE",
+        "JQ",
         "NC",
         "PERL",
         "PYTEST",
index 57287ae0f6d2805cebbec5e263e37b3ccd252505..b1552528cee976fcee47779b907abac1f6b2c818 100644 (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)