21 lines
474 B
Bash
21 lines
474 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: nattest,v 1.1 2000/02/06 13:05:27 veego Exp $
|
|
#
|
|
|
|
echo "$1...";
|
|
/bin/cp /dev/null results/$1
|
|
( while read rule; do
|
|
echo "$rule" | ipftest -Nbr - -i ../../../../dist/ipf/test/input/$1 >> results/$1;
|
|
if [ $? -ne 0 ] ; then
|
|
exit 1;
|
|
fi
|
|
echo "-------------------------------" >> results/$1
|
|
done ) < ../../../../dist/ipf/test/regress/$1
|
|
cmp ../../../../dist/ipf/test/expected/$1 results/$1
|
|
status=$?
|
|
if [ $status = 0 ] ; then
|
|
touch $1
|
|
fi
|
|
exit $status
|