[v9_9] simplify prereq checks by using feature-test.c
4498. [test] Simplify prerequisite checks in system tests. [RT #43516] (cherry picked from commit5480a74b70) (cherry picked from commit45fd95544c) (cherry picked from commit6e09e18400)
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.1.4.11 2012/02/01 16:54:32 each Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
|
||||
@@ -29,8 +27,8 @@ t=0
|
||||
ret=0
|
||||
t=`expr $t + 1`
|
||||
echo "I:checking that zones with slash are properly shown in XML output (${t})"
|
||||
if ./xmlstats && [ -x ${CURL} ] ; then
|
||||
if ./newstats
|
||||
if $FEATURETEST --have-libxml2 && [ -x ${CURL} ] ; then
|
||||
if $FEATURETEST --enable-newstats
|
||||
then
|
||||
${CURL} http://10.53.0.1:8053/xml/v3 > 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
|
||||
|
||||
Reference in New Issue
Block a user