#!/bin/sh | |
name=$1 | |
. ./ipflib.sh | |
test_init | |
echo "$name..."; | |
/bin/cp /dev/null results/$name | |
case $3 in | |
ipf) | |
../ipf -Rnvf regress/$name 2>/dev/null > results/$name | |
status=$? | |
if [ $status -ne 0 ] ; then | |
echo "ERROR: ../ipf -Rnvf regress/$name" | |
fi | |
;; | |
ipftest) | |
unset FINDLEAKS | |
../ipftest -D -r regress/$name -i /dev/null > results/$name | |
status=$? | |
if [ $status -ne 0 ] ; then | |
echo "ERROR: ../ipftest -D -r regress/$name" | |
fi | |
;; | |
esac | |
if [ $status -eq 0 ] ; then | |
check_results $name | |
fi | |
exit $status |