xref: /minix/external/bsd/bind/dist/unit/unittest.sh.in (revision 00b67f09)
1#!/bin/sh
2
3PATH="@ATFBIN@:${PATH}"
4export PATH
5
6status=0
7if [ -n "@ATFBIN@" -a -f Atffile ]
8then
9	echo "I: unit tests"
10	atf-run > atf.out
11	status=$?
12
13        # | cat is there to force non-fancy output
14	atf-report < atf.out | cat
15
16	if [ $status -eq 0 ]
17	then
18		rm -f atf.out
19		echo R:PASS
20	else
21		echo R:FAIL
22	fi
23fi
24exit $status
25