summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/test/itest
blob: 84b045454ff327783007945bdef0a6672681f435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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
OpenPOWER on IntegriCloud