check for libxml2

This commit is contained in:
Mark Andrews
2015-08-18 22:00:31 +10:00
parent b46fc43469
commit d9aeaf35ea
5 changed files with 88 additions and 3 deletions

View File

@@ -121,11 +121,11 @@ n=`expr $n + 1`
ret=0
n=`expr $n + 1`
echo "I:checking that zones with slash are properly shown in XML output ($n)"
if [ -x ${CURL} ] ; then
if ./xmlstats && [ -x ${CURL} ] ; then
${CURL} http://10.53.0.1:8053/xml/v3/zones > curl.out.${t} 2>/dev/null || ret=1
grep '<zone name="32/1.0.0.127-in-addr.example" rdataclass="IN">' curl.out.${t} > /dev/null || ret=1
else
echo "I:skipping test as curl was not found"
echo "I:skipping test as libxml2 and/or curl was not found"
fi
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`