A *.t file should provide Test Anything Protocol output so that it can be run using the Perl "prove" tool.
16 lines
217 B
Bash
16 lines
217 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
cd `dirname $0`
|
|
|
|
executable=`basename $0 .t`
|
|
|
|
make $executable 2>&1 > /dev/null
|
|
|
|
echo 1..1
|
|
if ./$executable; then
|
|
echo ok 1 - $executable successful
|
|
else
|
|
echo not ok 1 - $executable failed
|
|
fi
|