1997-03-29 05:49:40 +03:00
|
|
|
#!/bin/sh
|
1998-05-30 01:01:45 +04:00
|
|
|
#
|
2000-06-12 17:35:49 +04:00
|
|
|
# $NetBSD: itest,v 1.6 2000/06/12 13:35:53 veego Exp $
|
1998-05-30 01:01:45 +04:00
|
|
|
#
|
1998-05-30 00:57:10 +04:00
|
|
|
|
1997-03-29 05:49:40 +03:00
|
|
|
echo "$1...";
|
2000-06-12 17:35:49 +04:00
|
|
|
TESTDIR=$2;
|
|
|
|
[ -z "$2" ] && TESTDIR=$PWD'/../../../../dist/ipf/test';
|
1997-03-29 05:49:40 +03:00
|
|
|
/bin/cp /dev/null results/$1
|
2000-06-12 17:35:49 +04:00
|
|
|
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
|
2000-02-06 16:05:25 +03:00
|
|
|
touch $1
|
1997-03-29 05:49:40 +03:00
|
|
|
fi
|
|
|
|
exit $status
|