From de5841b969c17cddd46aae8f45ffdafe4f39479d Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Tue, 4 Jun 2019 20:04:52 +0200 Subject: [PATCH] auth: add an option to bulk fix the regression tests results (use it wisely) --- regression-tests/runtests | 5 +++++ regression-tests/start-test-stop | 1 + 2 files changed, 6 insertions(+) diff --git a/regression-tests/runtests b/regression-tests/runtests index d20cca75c..3060051fc 100755 --- a/regression-tests/runtests +++ b/regression-tests/runtests @@ -117,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 diff --git a/regression-tests/start-test-stop b/regression-tests/start-test-stop index 6f4fca1c4..aec086863 100755 --- a/regression-tests/start-test-stop +++ b/regression-tests/start-test-stop @@ -17,6 +17,7 @@ export ZONE2LDAP=${ZONE2LDAP:-${PWD}/../pdns/zone2ldap} export PDNSUTIL=${PDNSUTIL:-${PWD}/../pdns/pdnsutil} export PDNSCONTROL=${PDNSCONTROL:-${PWD}/../pdns/pdns_control} export RESOLVERIP=${RESOLVERIP:-8.8.8.8} +export FIX_TESTS=${FIX_TESTS:-NO} ALGORITHM=${ALGORITHM:="hmac-md5"} -- 2.40.0