mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-04 17:24:47 -04:00
24 lines
328 B
Bash
24 lines
328 B
Bash
#!/bin/sh
|
|
|
|
PATH="@ATFBIN@:${PATH}"
|
|
export PATH
|
|
|
|
status=0
|
|
if [ -n "@ATFBIN@" -a -f Atffile ]
|
|
then
|
|
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
|
|
fi
|
|
exit $status
|