NetBSD/usr.sbin/ipf/ipftest/test/itest

17 lines
334 B
Plaintext
Raw Normal View History

1997-03-29 05:49:40 +03:00
#!/bin/sh
#
# $NetBSD: itest,v 1.6 2000/06/12 13:35:53 veego Exp $
#
1997-03-29 05:49:40 +03:00
echo "$1...";
TESTDIR=$2;
[ -z "$2" ] && TESTDIR=$PWD'/../../../../dist/ipf/test';
1997-03-29 05:49:40 +03:00
/bin/cp /dev/null results/$1
ipf -nvf $TESTDIR/regress/$1 2>/dev/null > results/$1
cmp $TESTDIR/expected/$1 results/$1
1997-03-29 05:49:40 +03:00
status=$?
if [ $status = 0 ] ; then
touch $1
1997-03-29 05:49:40 +03:00
fi
exit $status