Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / contrib / ipfilter / test / dotest6
1 #!/bin/sh
2 if [ -f /usr/ucb/touch ] ; then
3         TOUCH=/usr/ucb/touch
4 else
5         if [ -f /usr/bin/touch ] ; then
6                 TOUCH=/usr/bin/touch
7         else
8                 if [ -f /bin/touch ] ; then
9                         TOUCH=/bin/touch
10                 fi
11         fi
12 fi
13 echo "$1...";
14 /bin/cp /dev/null results/$1
15 ../ipftest -6 -r /dev/null -i /dev/null >/dev/null 2>&1
16 if [ $? -ne 0 ] ; then
17         echo "skipping IPv6 tests"
18         $TOUCH $1
19         exit 0
20 fi
21 ( while read rule; do
22         echo "$rule" | ../ipftest -6Hbr - -i input/$1 >> results/$1;
23         if [ $? -ne 0 ] ; then
24                 exit 1;
25         fi
26         echo "--------" >> results/$1
27 done ) < regress/$1
28 cmp expected/$1 results/$1
29 status=$?
30 if [ $status = 0 ] ; then
31         $TOUCH $1
32 fi
33 exit $status