]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - regression-tests/runtests
Merge pull request #8091 from omoerbeek/float-vs-double
[thirdparty/pdns.git] / regression-tests / runtests
index b701dee74315e9c6ae0ee19a8ca3283171daa83f..3060051fc264766ac4334ab3ca8a6e37550797b3 100755 (executable)
@@ -16,11 +16,13 @@ export ZONE2LDAP=${ZONE2LDAP:-${PWD}/../pdns/zone2ldap}
 export PDNSUTIL=${PDNSUTIL:-${PWD}/../pdns/pdnsutil}
 export PDNSCONTROL=${PDNSCONTROL:-${PWD}/../pdns/pdns_control}
 
+unset _JAVA_OPTIONS
+
 spectest=$1
 [ -z $spectest ] && spectest=""
 
 for prog in $SDIG $SAXFR $NOTIFY $NSEC3DIG; do
-  if `echo $prog | grep -q '../pdns'`; then
+  if `echo $prog | grep -q '\.\./pdns'`; then
     ${MAKE} -C ../pdns ${prog##*../pdns/} || exit
   fi
 done
@@ -47,7 +49,9 @@ do
        testname=$(basename $a)
        export testname
        echo  "$testname: "
-       cat $a/description 
+       if [ "${PDNS_DEBUG}" = "YES" ]; then
+               cat $a/description
+       fi
 
        echo  "$testname: " >> test-results
        cat $a/description >> test-results
@@ -113,6 +117,11 @@ do
                                result="        Failed test $a"
                                echo $testname >> failed_tests
                                failed=$[$failed+1]
+                               if [ "$FIX_TESTS" == "YES" ]
+                               then
+                                       mv -f $a/real_result $expected
+                                       result="$result (fixed)"
+                               fi
                        else
                                result="        Expected failure for reason $reason, test passed $a"
                                echo $testname >> passed_tests