Use feature-test to detect feature support in system tests

Previously, there were two different ways to detect feature support.
Either through an environment variable set by configure in conf.sh, or
using the feature-test utility.

It is more simple and consistent to have only one way of detecting the
feature support. Using the feature-test utility seems superior the the
environment variables set by configure.
This commit is contained in:
Tom Krizek
2022-12-01 15:12:28 +01:00
parent e22d27da71
commit d24fb1122e
3 changed files with 14 additions and 14 deletions

View File

@@ -751,7 +751,7 @@ do
echo_i "Skipping XML statistics checks"
fi
if [ ${HAVEJSONSTATS} ] && [ -x "${CURL}" ] ; then
if $FEATURETEST --have-json-c && [ -x "${CURL}" ] ; then
echo_i "getting JSON statisistcs for (synth-from-dnssec ${description};) ($n)"
ret=0
json=json.out$n