]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
report R:PASS/FAIL
authorMark Andrews <marka@isc.org>
Sun, 4 Sep 2011 12:12:15 +0000 (12:12 +0000)
committerMark Andrews <marka@isc.org>
Sun, 4 Sep 2011 12:12:15 +0000 (12:12 +0000)
unit/unittest.sh.in

index 0f0ea81e223062ac0f8a9694c4123886ad9b3f49..488dd87923793f2722daac427afa9404a4980888 100644 (file)
@@ -3,13 +3,22 @@
 PATH="@ATFBIN@:${PATH}"
 export PATH
 
+status=0
 if [ -n "@ATFBIN@" ]
 then
+       echo "I: unit tests"
        atf-run > atf.out
        status=$?
 
         # | cat is there to force non-fancy output
        atf-report < atf.out | cat
 
-       [ $status -eq 0 ] && rm -f atf.out
+       if [ $status -eq 0 ]
+       then
+               rm -f atf.out
+               echo R:PASS
+       else
+               echo R:FAIL
+       fi
 fi
+exit $status