blob: be578113bdb2046b86218bd0a4d0c6c71988c5a1 [file] [log] [blame] [raw]
#!/bin/sh
testitem=$1
TESTMODE=$2
if [ ${TESTMODE} != user ] ; then
exit 0
fi
. ./ipflib.sh
test_init
set $args
. ./setup_test.sh
/bin/rm -f ${testitem}
echo "${todo}...";
/bin/cp /dev/null ${results}
if [ ${TESTMODE} = kern ] ; then
../ipf -D
../ipf -E
fi
if [ -f regress/${todo}.pool -a -f "${regress_ipf}" ] ; then
../ipftest -RD -b -P regress/${todo}.pool -r ${regress_ipf} \
-i ${input} >> ${results} &
elif [ -f regress/${todo}.pool -a -f "${regress_nat}" ] ; then
../ipftest -RD -b -P regress/${todo}.pool -N ${regress_nat} \
-i ${input} >> ${results} &
else
../ipftest -RD -b -r ${regress_ipf} -i ${input} >> ${results} &
fi
back=$!
wait $back
status=$?
if [ ${TESTMODE} = kern ] ; then
../ipf -D
fi
test_end_leak $status
echo "-------------------------------" >> ${results}
check_results
exit $status