]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
capture more information from unit tests
authorEvan Hunt <each@isc.org>
Fri, 9 Mar 2018 00:53:16 +0000 (16:53 -0800)
committerEvan Hunt <each@isc.org>
Fri, 9 Mar 2018 22:38:01 +0000 (14:38 -0800)
- preserve kyua results database when using kyua

(cherry picked from commit 81c23fecda7ccbd5949d78471bb047cf5e8ac33b)

unit/unittest.sh.in

index 2ddbdb77039da2405a871fa84c804e18c11658bd..bcbb89394eed53c8aedcd4446d1ba788ca20ad7d 100755 (executable)
@@ -10,7 +10,7 @@ if [ -n "@UNITTESTS@" -a -x "$ATFRUN" -a -f Atffile ]
 then
        echo "S:unit:`date`"
        echo "T:unit:1:A"
-       echo "I: unit tests"
+       echo "I: unit tests (using atf-run)"
        atf-run > atf.out
        status=$?
 
@@ -29,11 +29,11 @@ elif [ -n "@UNITTESTS@" -a -x "$KYUA" -a -f Kyuafile ]
 then
        echo "S:unit:`date`"
        echo "T:unit:1:A"
-       echo "I: unit tests"
-       kyua --logfile kyua.log test
+       echo "I: unit tests (using kyua)"
+       kyua --logfile kyua.log --loglevel debug test --results-file ${KYUA_RESULT:-NEW}
        status=$?
 
-       kyua report
+       kyua report --results-file ${KYUA_RESULT:-LATEST}
 
        if [ $status -eq 0 ]
        then