Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/sys/kern/ipf Import IPFilter 3.4.27
details: https://anonhg.NetBSD.org/src/rev/878a644043bb
branches: trunk
changeset: 526884:878a644043bb
user: martti <martti%NetBSD.org@localhost>
date: Mon May 13 06:33:09 2002 +0000
description:
Import IPFilter 3.4.27
diffstat:
regress/sys/kern/ipf/Makefile | 74 +
regress/sys/kern/ipf/dotest | 27 +
regress/sys/kern/ipf/expected/f1 | 20 +
regress/sys/kern/ipf/expected/f10 | 126 +++
regress/sys/kern/ipf/expected/f11 | 119 ++
regress/sys/kern/ipf/expected/f12 | 60 +
regress/sys/kern/ipf/expected/f13 | 72 +
regress/sys/kern/ipf/expected/f14 | 48 +
regress/sys/kern/ipf/expected/f15 | 9 +
regress/sys/kern/ipf/expected/f16 | 9 +
regress/sys/kern/ipf/expected/f17 | 10 +
regress/sys/kern/ipf/expected/f2 | 42 +
regress/sys/kern/ipf/expected/f3 | 48 +
regress/sys/kern/ipf/expected/f4 | 48 +
regress/sys/kern/ipf/expected/f5 | 1392 ++++++++++++++++++++++++++++++++++
regress/sys/kern/ipf/expected/f6 | 1392 ++++++++++++++++++++++++++++++++++
regress/sys/kern/ipf/expected/f7 | 60 +
regress/sys/kern/ipf/expected/f8 | 42 +
regress/sys/kern/ipf/expected/f9 | 126 +++
regress/sys/kern/ipf/expected/i1 | 13 +
regress/sys/kern/ipf/expected/i10 | 4 +
regress/sys/kern/ipf/expected/i11 | 4 +
regress/sys/kern/ipf/expected/i2 | 6 +
regress/sys/kern/ipf/expected/i3 | 10 +
regress/sys/kern/ipf/expected/i4 | 7 +
regress/sys/kern/ipf/expected/i5 | 5 +
regress/sys/kern/ipf/expected/i6 | 4 +
regress/sys/kern/ipf/expected/i7 | 4 +
regress/sys/kern/ipf/expected/i8 | 2 +
regress/sys/kern/ipf/expected/i9 | 5 +
regress/sys/kern/ipf/expected/in1 | 24 +
regress/sys/kern/ipf/expected/in2 | 22 +
regress/sys/kern/ipf/expected/in3 | 5 +
regress/sys/kern/ipf/expected/in4 | 5 +
regress/sys/kern/ipf/expected/ipv6.1 | 5 +
regress/sys/kern/ipf/expected/ipv6.2 | 17 +
regress/sys/kern/ipf/expected/l1 | 49 +
regress/sys/kern/ipf/expected/l1.b | 47 +
regress/sys/kern/ipf/expected/n1 | 96 ++
regress/sys/kern/ipf/expected/n2 | 80 +
regress/sys/kern/ipf/expected/n3 | 12 +
regress/sys/kern/ipf/expected/n4 | 30 +
regress/sys/kern/ipf/expected/n5 | 330 ++++++++
regress/sys/kern/ipf/expected/n6 | 70 +
regress/sys/kern/ipf/expected/n7 | 20 +
regress/sys/kern/ipf/expected/ni1 | 3 +
regress/sys/kern/ipf/expected/ni2 | 10 +
regress/sys/kern/ipf/expected/ni4 | 4 +
regress/sys/kern/ipf/expected/ni5 | 47 +
regress/sys/kern/ipf/hextest | 27 +
regress/sys/kern/ipf/input/f1 | 4 +
regress/sys/kern/ipf/input/f10 | 6 +
regress/sys/kern/ipf/input/f11 | 16 +
regress/sys/kern/ipf/input/f12 | 35 +
regress/sys/kern/ipf/input/f13 | 43 +
regress/sys/kern/ipf/input/f14 | 5 +
regress/sys/kern/ipf/input/f15 | 8 +
regress/sys/kern/ipf/input/f16 | 8 +
regress/sys/kern/ipf/input/f17 | 61 +
regress/sys/kern/ipf/input/f2 | 6 +
regress/sys/kern/ipf/input/f3 | 5 +
regress/sys/kern/ipf/input/f4 | 5 +
regress/sys/kern/ipf/input/f5 | 28 +
regress/sys/kern/ipf/input/f6 | 28 +
regress/sys/kern/ipf/input/f7 | 9 +
regress/sys/kern/ipf/input/f8 | 6 +
regress/sys/kern/ipf/input/f9 | 6 +
regress/sys/kern/ipf/input/ipv6.2 | 28 +
regress/sys/kern/ipf/input/l1 | 52 +
regress/sys/kern/ipf/input/n1 | 31 +
regress/sys/kern/ipf/input/n2 | 19 +
regress/sys/kern/ipf/input/n3 | 5 +
regress/sys/kern/ipf/input/n4 | 5 +
regress/sys/kern/ipf/input/n5 | 54 +
regress/sys/kern/ipf/input/n6 | 13 +
regress/sys/kern/ipf/input/n7 | 9 +
regress/sys/kern/ipf/input/ni1 | 6 +
regress/sys/kern/ipf/input/ni2 | 161 +++
regress/sys/kern/ipf/input/ni4 | 10 +
regress/sys/kern/ipf/input/ni5 | 276 ++++++
regress/sys/kern/ipf/intest | 21 +
regress/sys/kern/ipf/itest | 21 +
regress/sys/kern/ipf/logtest | 48 +
regress/sys/kern/ipf/mhtest | 36 +
regress/sys/kern/ipf/mtest | 36 +
regress/sys/kern/ipf/natipftest | 28 +
regress/sys/kern/ipf/nattest | 27 +
regress/sys/kern/ipf/regress/f1 | 4 +
regress/sys/kern/ipf/regress/f10 | 18 +
regress/sys/kern/ipf/regress/f11 | 7 +
regress/sys/kern/ipf/regress/f12 | 6 +
regress/sys/kern/ipf/regress/f13 | 6 +
regress/sys/kern/ipf/regress/f14 | 8 +
regress/sys/kern/ipf/regress/f15 | 8 +
regress/sys/kern/ipf/regress/f16 | 10 +
regress/sys/kern/ipf/regress/f17 | 4 +
regress/sys/kern/ipf/regress/f2 | 6 +
regress/sys/kern/ipf/regress/f3 | 8 +
regress/sys/kern/ipf/regress/f4 | 8 +
regress/sys/kern/ipf/regress/f5 | 48 +
regress/sys/kern/ipf/regress/f6 | 48 +
regress/sys/kern/ipf/regress/f7 | 6 +
regress/sys/kern/ipf/regress/f8 | 6 +
regress/sys/kern/ipf/regress/f9 | 18 +
regress/sys/kern/ipf/regress/i1 | 13 +
regress/sys/kern/ipf/regress/i10 | 4 +
regress/sys/kern/ipf/regress/i11 | 4 +
regress/sys/kern/ipf/regress/i2 | 6 +
regress/sys/kern/ipf/regress/i3 | 10 +
regress/sys/kern/ipf/regress/i4 | 7 +
regress/sys/kern/ipf/regress/i5 | 5 +
regress/sys/kern/ipf/regress/i6 | 4 +
regress/sys/kern/ipf/regress/i7 | 4 +
regress/sys/kern/ipf/regress/i8 | 2 +
regress/sys/kern/ipf/regress/i9 | 5 +
regress/sys/kern/ipf/regress/in1 | 24 +
regress/sys/kern/ipf/regress/in2 | 22 +
regress/sys/kern/ipf/regress/in3 | 5 +
regress/sys/kern/ipf/regress/in4 | 5 +
regress/sys/kern/ipf/regress/ipv6.2 | 5 +
regress/sys/kern/ipf/regress/l1 | 6 +
regress/sys/kern/ipf/regress/n1 | 3 +
regress/sys/kern/ipf/regress/n2 | 4 +
regress/sys/kern/ipf/regress/n3 | 2 +
regress/sys/kern/ipf/regress/n4 | 5 +
regress/sys/kern/ipf/regress/n5 | 6 +
regress/sys/kern/ipf/regress/n6 | 5 +
regress/sys/kern/ipf/regress/n7 | 2 +
regress/sys/kern/ipf/regress/ni1.ipf | 4 +
regress/sys/kern/ipf/regress/ni1.nat | 1 +
regress/sys/kern/ipf/regress/ni2.ipf | 1 +
regress/sys/kern/ipf/regress/ni2.nat | 1 +
regress/sys/kern/ipf/regress/ni4.ipf | 4 +
regress/sys/kern/ipf/regress/ni4.nat | 1 +
regress/sys/kern/ipf/regress/ni5.ipf | 3 +
regress/sys/kern/ipf/regress/ni5.nat | 1 +
136 files changed, 6249 insertions(+), 0 deletions(-)
diffs (truncated from 6793 to 300 lines):
diff -r efa8cb09c61a -r 878a644043bb regress/sys/kern/ipf/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/sys/kern/ipf/Makefile Mon May 13 06:33:09 2002 +0000
@@ -0,0 +1,74 @@
+#
+# (C)opyright 1993-1996 by Darren Reed.
+#
+# Redistribution and use in source and binary forms are permitted
+# provided that this notice is preserved and due credit is given
+# to the original author and the contributors.
+#
+BINDEST=/usr/local/bin
+SBINDEST=/sbin
+MANDIR=/usr/share/man
+
+tests: first 0 ftests ptests ntests nitests logtests ipv6 intests
+
+first:
+ -mkdir -p results
+
+# Filtering tests
+ftests: f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17
+
+# Rule parsing tests
+ptests: i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11
+
+ntests: n1 n2 n3 n4 n5 n6 n7
+
+nitests: ni1 ni2 ni3 ni4 ni5
+
+intests: in1 in2 in3 in4
+
+logtests: l1
+
+ipv6: ipv6.1 ipv6.2
+
+0:
+ @(cd ..; make ipftest; )
+
+f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f14:
+ @/bin/sh ./dotest $@
+
+f12 f13:
+ @/bin/sh ./hextest $@
+
+f15 f16:
+ @/bin/sh ./mtest $@
+
+f17:
+ @/bin/sh ./mhtest $@
+
+i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11:
+ @/bin/sh ./itest $@
+
+n1 n2 n3 n4 n5 n6 n7:
+ @/bin/sh ./nattest $@
+
+ni1 ni2 ni3 ni4 ni5:
+ @/bin/sh ./natipftest $@
+
+in1 in2 in3 in4:
+ @/bin/sh ./intest $@
+
+l1:
+ @/bin/sh ./logtest $@
+
+ipv6.1 ipv6.2:
+ @/bin/sh ./dotest6 $@
+
+clean:
+ /bin/rm -f f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f13 f12 f14 f15 f16 f17
+ /bin/rm -f i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11
+ /bin/rm -f n1 n2 n3 n4 n5 n6 n7
+ /bin/rm -f ni1 ni2 ni3 ni4 ni5
+ /bin/rm -f in1 in2 in3 in4
+ /bin/rm -f l1
+ /bin/rm -f ipv6.1 ipv6.2
+ /bin/rm -f results/*
diff -r efa8cb09c61a -r 878a644043bb regress/sys/kern/ipf/dotest
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/sys/kern/ipf/dotest Mon May 13 06:33:09 2002 +0000
@@ -0,0 +1,27 @@
+#!/bin/sh
+if [ -f /usr/ucb/touch ] ; then
+ TOUCH=/usr/ucb/touch
+else
+ if [ -f /usr/bin/touch ] ; then
+ TOUCH=/usr/bin/touch
+ else
+ if [ -f /bin/touch ] ; then
+ TOUCH=/bin/touch
+ fi
+ fi
+fi
+echo "$1...";
+/bin/cp /dev/null results/$1
+( while read rule; do
+ echo "$rule" | ../ipftest -br - -i input/$1 >> results/$1;
+ if [ $? -ne 0 ] ; then
+ exit 1;
+ fi
+ echo "--------" >> results/$1
+done ) < regress/$1
+cmp expected/$1 results/$1
+status=$?
+if [ $status = 0 ] ; then
+ $TOUCH $1
+fi
+exit $status
diff -r efa8cb09c61a -r 878a644043bb regress/sys/kern/ipf/expected/f1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/sys/kern/ipf/expected/f1 Mon May 13 06:33:09 2002 +0000
@@ -0,0 +1,20 @@
+block
+block
+nomatch
+nomatch
+--------
+pass
+pass
+nomatch
+nomatch
+--------
+nomatch
+nomatch
+block
+block
+--------
+nomatch
+nomatch
+pass
+pass
+--------
diff -r efa8cb09c61a -r 878a644043bb regress/sys/kern/ipf/expected/f10
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/sys/kern/ipf/expected/f10 Mon May 13 06:33:09 2002 +0000
@@ -0,0 +1,126 @@
+nomatch
+block
+nomatch
+nomatch
+nomatch
+nomatch
+--------
+pass
+pass
+pass
+nomatch
+nomatch
+pass
+--------
+block
+block
+block
+nomatch
+nomatch
+block
+--------
+pass
+pass
+pass
+nomatch
+nomatch
+pass
+--------
+block
+block
+nomatch
+nomatch
+nomatch
+block
+--------
+pass
+pass
+nomatch
+nomatch
+nomatch
+pass
+--------
+block
+block
+block
+block
+block
+block
+--------
+pass
+pass
+pass
+pass
+pass
+pass
+--------
+nomatch
+block
+block
+block
+nomatch
+block
+--------
+nomatch
+pass
+pass
+pass
+nomatch
+pass
+--------
+nomatch
+pass
+nomatch
+nomatch
+nomatch
+nomatch
+--------
+nomatch
+block
+block
+block
+block
+block
+--------
+nomatch
+pass
+pass
+pass
+pass
+pass
+--------
+block
+block
+nomatch
+block
+nomatch
+block
+--------
+pass
+pass
+nomatch
+pass
+nomatch
+pass
+--------
+block
+block
+block
+block
+block
+block
+--------
+pass
+pass
+pass
+pass
+pass
+pass
+--------
+block
+block
+block
+nomatch
+nomatch
+block
+--------
diff -r efa8cb09c61a -r 878a644043bb regress/sys/kern/ipf/expected/f11
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/sys/kern/ipf/expected/f11 Mon May 13 06:33:09 2002 +0000
@@ -0,0 +1,119 @@
+pass
+nomatch
+nomatch
+pass
+pass
+nomatch
+pass
+nomatch
+pass
+nomatch
+nomatch
+nomatch
+nomatch
+nomatch
+nomatch
+nomatch
+--------
+block
+nomatch
+nomatch
+block
+block
+nomatch
+block
+nomatch
+block
+nomatch
+nomatch
+nomatch
+nomatch
+nomatch
+nomatch
+nomatch
Home |
Main Index |
Thread Index |
Old Index