mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
report R:PASS/FAIL
This commit is contained in:
parent
0d9d523ee5
commit
df864361fd
1 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue