Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src ipf regression tests are in regress/sys/kern/ipf



details:   https://anonhg.NetBSD.org/src/rev/977ba307dd46
branches:  trunk
changeset: 526886:977ba307dd46
user:      martti <martti%NetBSD.org@localhost>
date:      Mon May 13 06:35:47 2002 +0000

description:
ipf regression tests are in regress/sys/kern/ipf

diffstat:

 dist/ipf/test/Makefile             |    74 -
 dist/ipf/test/dotest               |    30 -
 dist/ipf/test/expected/f1          |    20 -
 dist/ipf/test/expected/f10         |   126 ---
 dist/ipf/test/expected/f11         |   119 ---
 dist/ipf/test/expected/f12         |    60 -
 dist/ipf/test/expected/f13         |    72 -
 dist/ipf/test/expected/f14         |    48 -
 dist/ipf/test/expected/f15         |     9 -
 dist/ipf/test/expected/f16         |     9 -
 dist/ipf/test/expected/f17         |    10 -
 dist/ipf/test/expected/f2          |    42 -
 dist/ipf/test/expected/f3          |    48 -
 dist/ipf/test/expected/f4          |    48 -
 dist/ipf/test/expected/f5          |  1392 ------------------------------------
 dist/ipf/test/expected/f6          |  1392 ------------------------------------
 dist/ipf/test/expected/f7          |    60 -
 dist/ipf/test/expected/f8          |    42 -
 dist/ipf/test/expected/f9          |   126 ---
 dist/ipf/test/expected/i1          |    13 -
 dist/ipf/test/expected/i10         |     4 -
 dist/ipf/test/expected/i11         |     4 -
 dist/ipf/test/expected/i2          |     6 -
 dist/ipf/test/expected/i3          |    10 -
 dist/ipf/test/expected/i4          |     7 -
 dist/ipf/test/expected/i5          |     5 -
 dist/ipf/test/expected/i6          |     4 -
 dist/ipf/test/expected/i7          |     4 -
 dist/ipf/test/expected/i8          |     2 -
 dist/ipf/test/expected/i9          |     5 -
 dist/ipf/test/expected/in1         |    24 -
 dist/ipf/test/expected/in2         |    22 -
 dist/ipf/test/expected/in3         |     5 -
 dist/ipf/test/expected/in4         |     5 -
 dist/ipf/test/expected/ipv6.1      |     5 -
 dist/ipf/test/expected/ipv6.2      |    17 -
 dist/ipf/test/expected/l1          |    49 -
 dist/ipf/test/expected/l1.b        |    47 -
 dist/ipf/test/expected/n1          |    96 --
 dist/ipf/test/expected/n2          |    80 --
 dist/ipf/test/expected/n3          |    12 -
 dist/ipf/test/expected/n4          |    30 -
 dist/ipf/test/expected/n5          |   330 --------
 dist/ipf/test/expected/n6          |    70 -
 dist/ipf/test/expected/n7          |    20 -
 dist/ipf/test/expected/ni1         |     3 -
 dist/ipf/test/expected/ni2         |    10 -
 dist/ipf/test/expected/ni4         |     4 -
 dist/ipf/test/expected/ni5         |    47 -
 dist/ipf/test/hextest              |    30 -
 dist/ipf/test/input/f1             |     4 -
 dist/ipf/test/input/f10            |     6 -
 dist/ipf/test/input/f11            |    16 -
 dist/ipf/test/input/f12            |    35 -
 dist/ipf/test/input/f13            |    43 -
 dist/ipf/test/input/f14            |     5 -
 dist/ipf/test/input/f15            |     8 -
 dist/ipf/test/input/f16            |     8 -
 dist/ipf/test/input/f17            |    61 -
 dist/ipf/test/input/f2             |     6 -
 dist/ipf/test/input/f3             |     5 -
 dist/ipf/test/input/f4             |     5 -
 dist/ipf/test/input/f5             |    28 -
 dist/ipf/test/input/f6             |    28 -
 dist/ipf/test/input/f7             |     9 -
 dist/ipf/test/input/f8             |     6 -
 dist/ipf/test/input/f9             |     6 -
 dist/ipf/test/input/ipv6.2         |    28 -
 dist/ipf/test/input/l1             |    52 -
 dist/ipf/test/input/n1             |    31 -
 dist/ipf/test/input/n2             |    19 -
 dist/ipf/test/input/n3             |     5 -
 dist/ipf/test/input/n4             |     5 -
 dist/ipf/test/input/n5             |    54 -
 dist/ipf/test/input/n6             |    13 -
 dist/ipf/test/input/n7             |     9 -
 dist/ipf/test/input/ni1            |     6 -
 dist/ipf/test/input/ni2            |   161 ----
 dist/ipf/test/input/ni4            |    10 -
 dist/ipf/test/input/ni5            |   276 -------
 dist/ipf/test/intest               |    21 -
 dist/ipf/test/itest                |    24 -
 dist/ipf/test/logtest              |    48 -
 dist/ipf/test/mhtest               |    36 -
 dist/ipf/test/mtest                |    36 -
 dist/ipf/test/natipftest           |    28 -
 dist/ipf/test/nattest              |    30 -
 dist/ipf/test/regress/f1           |     4 -
 dist/ipf/test/regress/f10          |    18 -
 dist/ipf/test/regress/f11          |     7 -
 dist/ipf/test/regress/f12          |     6 -
 dist/ipf/test/regress/f13          |     6 -
 dist/ipf/test/regress/f14          |     8 -
 dist/ipf/test/regress/f15          |     8 -
 dist/ipf/test/regress/f16          |    10 -
 dist/ipf/test/regress/f17          |     4 -
 dist/ipf/test/regress/f2           |     6 -
 dist/ipf/test/regress/f3           |     8 -
 dist/ipf/test/regress/f4           |     8 -
 dist/ipf/test/regress/f5           |    48 -
 dist/ipf/test/regress/f6           |    48 -
 dist/ipf/test/regress/f7           |     6 -
 dist/ipf/test/regress/f8           |     6 -
 dist/ipf/test/regress/f9           |    18 -
 dist/ipf/test/regress/i1           |    13 -
 dist/ipf/test/regress/i10          |     4 -
 dist/ipf/test/regress/i11          |     4 -
 dist/ipf/test/regress/i2           |     6 -
 dist/ipf/test/regress/i3           |    10 -
 dist/ipf/test/regress/i4           |     7 -
 dist/ipf/test/regress/i5           |     5 -
 dist/ipf/test/regress/i6           |     4 -
 dist/ipf/test/regress/i7           |     4 -
 dist/ipf/test/regress/i8           |     2 -
 dist/ipf/test/regress/i9           |     5 -
 dist/ipf/test/regress/in1          |    24 -
 dist/ipf/test/regress/in2          |    22 -
 dist/ipf/test/regress/in3          |     5 -
 dist/ipf/test/regress/in4          |     5 -
 dist/ipf/test/regress/ipv6.2       |     5 -
 dist/ipf/test/regress/l1           |     6 -
 dist/ipf/test/regress/n1           |     3 -
 dist/ipf/test/regress/n2           |     4 -
 dist/ipf/test/regress/n3           |     2 -
 dist/ipf/test/regress/n4           |     5 -
 dist/ipf/test/regress/n5           |     6 -
 dist/ipf/test/regress/n6           |     5 -
 dist/ipf/test/regress/n7           |     2 -
 dist/ipf/test/regress/ni1.ipf      |     4 -
 dist/ipf/test/regress/ni1.nat      |     1 -
 dist/ipf/test/regress/ni2.ipf      |     1 -
 dist/ipf/test/regress/ni2.nat      |     1 -
 dist/ipf/test/regress/ni4.ipf      |     4 -
 dist/ipf/test/regress/ni4.nat      |     1 -
 dist/ipf/test/regress/ni5.ipf      |     3 -
 dist/ipf/test/regress/ni5.nat      |     1 -
 usr.sbin/ipf/ipftest/Makefile      |     4 +-
 usr.sbin/ipf/ipftest/test/Makefile |    43 -
 usr.sbin/ipf/ipftest/test/dotest   |    22 -
 usr.sbin/ipf/ipftest/test/hextest  |    22 -
 usr.sbin/ipf/ipftest/test/itest    |    16 -
 usr.sbin/ipf/ipftest/test/nattest  |    22 -
 142 files changed, 1 insertions(+), 6389 deletions(-)

diffs (truncated from 6968 to 300 lines):

diff -r 24cb2639a5c5 -r 977ba307dd46 dist/ipf/test/Makefile
--- a/dist/ipf/test/Makefile    Mon May 13 06:34:13 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-#
-# (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 24cb2639a5c5 -r 977ba307dd46 dist/ipf/test/dotest
--- a/dist/ipf/test/dotest      Mon May 13 06:34:13 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-#      $NetBSD: dotest,v 1.2 1999/12/11 23:22:14 veego Exp $
-#
-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 24cb2639a5c5 -r 977ba307dd46 dist/ipf/test/expected/f1
--- a/dist/ipf/test/expected/f1 Mon May 13 06:34:13 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-block
-block
-nomatch
-nomatch
---------
-pass
-pass
-nomatch
-nomatch
---------
-nomatch
-nomatch
-block
-block
---------
-nomatch
-nomatch
-pass
-pass
---------
diff -r 24cb2639a5c5 -r 977ba307dd46 dist/ipf/test/expected/f10
--- a/dist/ipf/test/expected/f10        Mon May 13 06:34:13 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,126 +0,0 @@
-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 24cb2639a5c5 -r 977ba307dd46 dist/ipf/test/expected/f11
--- a/dist/ipf/test/expected/f11        Mon May 13 06:34:13 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,119 +0,0 @@
-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



Home | Main Index | Thread Index | Old Index