From f38cbbd56cc8f6861ae96ed065c356b4f3b06c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Sat, 25 Oct 2025 07:37:48 +0200 Subject: [PATCH] Detect xmllint at build time Detect whether and where the xmllint 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 85773d4d210f4497f93322da8005419a271058a7) --- bin/tests/system/isctest/vars/.ac_vars/XMLLINT.in | 1 + configure.ac | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 bin/tests/system/isctest/vars/.ac_vars/XMLLINT.in diff --git a/bin/tests/system/isctest/vars/.ac_vars/XMLLINT.in b/bin/tests/system/isctest/vars/.ac_vars/XMLLINT.in new file mode 100644 index 0000000000..9364f0fb42 --- /dev/null +++ b/bin/tests/system/isctest/vars/.ac_vars/XMLLINT.in @@ -0,0 +1 @@ +@XMLLINT@ diff --git a/configure.ac b/configure.ac index a60ba181f1..d403f37ef1 100644 --- a/configure.ac +++ b/configure.ac @@ -330,6 +330,7 @@ AM_CONDITIONAL([HAVE_PYTEST], [test -n "$PYTEST"]) # Optional utilities, only used by system tests. # AC_PATH_PROG([JQ], [jq]) +AC_PATH_PROG([XMLLINT], [xmllint]) AC_PATH_PROG([XSLTPROC], [xsltproc]) # @@ -1650,6 +1651,7 @@ AC_CONFIG_FILES([bin/tests/Makefile bin/tests/system/isctest/vars/.ac_vars/PERL bin/tests/system/isctest/vars/.ac_vars/CURL bin/tests/system/isctest/vars/.ac_vars/NC + bin/tests/system/isctest/vars/.ac_vars/XMLLINT bin/tests/system/isctest/vars/.ac_vars/XSLTPROC bin/tests/system/isctest/vars/.ac_vars/PYTEST bin/tests/system/dyndb/driver/Makefile