2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-27 12:38:24 +00:00
bind/unit/unittest.sh.in

28 lines
398 B
Bash
Raw Normal View History

#!/bin/sh
PATH="@ATFBIN@:${PATH}"
export PATH
2011-09-04 12:12:15 +00:00
status=0
if [ -n "@ATFBIN@" -a -f Atffile ]
2011-02-27 14:13:51 +00:00
then
2015-09-24 07:43:11 +10:00
echo "S:unit:`date`"
echo "T:unit:1:A"
2011-09-04 12:12:15 +00:00
echo "I: unit tests"
atf-run > atf.out
status=$?
# | cat is there to force non-fancy output
atf-report < atf.out | cat
2011-09-04 12:12:15 +00:00
if [ $status -eq 0 ]
then
rm -f atf.out
echo R:PASS
else
echo R:FAIL
fi
2015-09-24 07:43:11 +10:00
echo "E:unit:`date`"
2011-02-27 14:13:51 +00:00
fi
2011-09-04 12:12:15 +00:00
exit $status