phunix/external/bsd/bind/dist/unit/unittest.sh.in
David van Moolenbroek 00b67f09dd Import NetBSD named(8)
Also known as ISC bind.  This import adds utilities such as host(1),
dig(1), and nslookup(1), as well as many other tools and libraries.

Change-Id: I035ca46e64f1965d57019e773f4ff0ef035e4aa3
2017-03-21 22:00:06 +00:00

25 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