mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
report R:PASS/FAIL
This commit is contained in:
parent
0d9d523ee5
commit
df864361fd
@ -3,13 +3,22 @@
|
|||||||
PATH="@ATFBIN@:${PATH}"
|
PATH="@ATFBIN@:${PATH}"
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
|
status=0
|
||||||
if [ -n "@ATFBIN@" ]
|
if [ -n "@ATFBIN@" ]
|
||||||
then
|
then
|
||||||
|
echo "I: unit tests"
|
||||||
atf-run > atf.out
|
atf-run > atf.out
|
||||||
status=$?
|
status=$?
|
||||||
|
|
||||||
# | cat is there to force non-fancy output
|
# | cat is there to force non-fancy output
|
||||||
atf-report < atf.out | cat
|
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
|
fi
|
||||||
|
exit $status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user