summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/test/bpftest
blob: 5449658f820ead683a7e63a6f4423473ac11de6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
name=$1

. ./ipflib.sh

test_init

echo "$name...";
input=`expr $name : 'bpf-\(.*\)'`
/bin/cp /dev/null results/$name
( while read rule; do
	echo "$rule" | ../ipftest -Rbr - -i input/$input >> results/$name
	if [ $? -ne 0 ] ; then
		exit 1;
	fi
	echo "--------" >> results/$name
done ) < regress/$name
check_results $name
exit $status
OpenPOWER on IntegriCloud