mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-27 12:38:24 +00:00
28 lines
398 B
Bash
28 lines
398 B
Bash
#!/bin/sh
|
|
|
|
PATH="@ATFBIN@:${PATH}"
|
|
export PATH
|
|
|
|
status=0
|
|
if [ -n "@ATFBIN@" -a -f Atffile ]
|
|
then
|
|
echo "S:unit:`date`"
|
|
echo "T:unit:1:A"
|
|
echo "I: unit tests"
|
|
atf-run > atf.out
|
|
status=$?
|
|
|
|
# | cat is there to force non-fancy output
|
|
atf-report < atf.out | cat
|
|
|
|
if [ $status -eq 0 ]
|
|
then
|
|
rm -f atf.out
|
|
echo R:PASS
|
|
else
|
|
echo R:FAIL
|
|
fi
|
|
echo "E:unit:`date`"
|
|
fi
|
|
exit $status
|