unittest.sh.in revision df864361fd66b91f0069a2e2aefcf45515103dcc
#!/bin/sh
PATH="@ATFBIN@:${PATH}"
export PATH
status=0
if [ -n "@ATFBIN@" ]
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