| #!/bin/sh |
| name=$1 |
| format=$2 |
| |
| . ./ipflib.sh |
| |
| test_init |
| |
| echo "$name..."; |
| |
| case `uname -s` in |
| OSF1) |
| GMT=: |
| ;; |
| *) |
| GMT=GMT |
| ;; |
| esac |
| |
| n=1 |
| /bin/cp /dev/null results/$name |
| /bin/cp /dev/null results/$name.b |
| |
| ( while read rule; do |
| /bin/rm -f logout |
| set_core $name $n |
| echo $rule >> results/$name |
| echo $rule | ../ipftest -br - -F $format -i input/$name -l logout > /dev/null & |
| back=$! |
| wait $back |
| test_end_leak $? |
| n=`expr $n + 1` |
| |
| TZ=$GMT ../ipmon -P /dev/null -f logout >> results/$1 |
| echo "--------" >> results/$1 |
| TZ=$GMT ../ipmon -P /dev/null -bf logout >> results/$1.b |
| echo "--------" >> results/$1.b |
| done ) < regress/$1 |
| ../ipftest -br regress/$1 -F $format -i input/$1 -l logout > /dev/null |
| TZ=$GMT ../ipmon -P /dev/null -f logout >> results/$1 |
| echo "--------" >> results/$1 |
| TZ=$GMT ../ipmon -P /dev/null -bf logout >> results/$1.b |
| echo "--------" >> results/$1.b |
| |
| cmp expected/$1 results/$1 |
| status=$? |
| if [ $status -ne 0 ] ; then |
| exit $status |
| fi |
| cmp expected/$1.b results/$1.b |
| status=$? |
| if [ $status -ne 0 ] ; then |
| exit $status |
| fi |
| /bin/rm -f logout |
| $TOUCH $1 |
| exit 0 |