head	1.3;
access;
symbols
	perseant-exfatfs-base-20250801:1.3
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.44
	perseant-exfatfs-base:1.3
	cjep_sun2x:1.3.0.42
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	cjep_staticlib_x:1.3.0.40
	cjep_staticlib_x-base:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	phil-wifi-20200406:1.3
	pgoyette-compat-merge-20190127:1.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	pgoyette-compat-0728:1.3
	pgoyette-compat-0625:1.3
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	pgoyette-compat:1.3.0.38
	pgoyette-compat-base:1.3
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.36
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	bouyer-socketcan:1.3.0.34
	bouyer-socketcan-base:1.3
	pgoyette-localcount-20170107:1.3
	pgoyette-localcount-20161104:1.3
	localcount-20160914:1.3
	pgoyette-localcount-20160806:1.3
	pgoyette-localcount-20160726:1.3
	pgoyette-localcount:1.3.0.32
	pgoyette-localcount-base:1.3
	netbsd-5-2-3-RELEASE:1.3
	netbsd-5-1-5-RELEASE:1.3
	yamt-pagecache-base9:1.3
	yamt-pagecache-tag8:1.3
	tls-earlyentropy:1.3.0.28
	tls-earlyentropy-base:1.3
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.3
	riastradh-drm2-base3:1.3
	netbsd-5-2-2-RELEASE:1.3
	netbsd-5-1-4-RELEASE:1.3
	netbsd-5-2-1-RELEASE:1.3
	netbsd-5-1-3-RELEASE:1.3
	agc-symver:1.3.0.30
	agc-symver-base:1.3
	tls-maxphys-base:1.3
	yamt-pagecache-base8:1.3
	netbsd-5-2:1.3.0.26
	yamt-pagecache-base7:1.3
	netbsd-5-2-RELEASE:1.3
	netbsd-5-2-RC1:1.3
	yamt-pagecache-base6:1.3
	yamt-pagecache-base5:1.3
	yamt-pagecache-base4:1.3
	netbsd-5-1-2-RELEASE:1.3
	v5-1-1:1.1.1.5
	netbsd-5-1-1-RELEASE:1.3
	yamt-pagecache-base3:1.3
	yamt-pagecache-base2:1.3
	yamt-pagecache:1.3.0.24
	yamt-pagecache-base:1.3
	bouyer-quota2-nbase:1.3
	bouyer-quota2:1.3.0.22
	bouyer-quota2-base:1.3
	matt-nb5-pq3:1.3.0.20
	matt-nb5-pq3-base:1.3
	netbsd-5-1:1.3.0.18
	netbsd-5-1-RELEASE:1.3
	netbsd-5-1-RC4:1.3
	netbsd-5-1-RC3:1.3
	netbsd-5-1-RC2:1.3
	netbsd-5-1-RC1:1.3
	v4-1-34:1.1.1.4
	netbsd-5-0-2-RELEASE:1.3
	v4-1-33:1.1.1.4
	netbsd-5-0-1-RELEASE:1.3
	jym-xensuspend-nbase:1.3
	netbsd-5-0:1.3.0.16
	netbsd-5-0-RELEASE:1.3
	netbsd-5-0-RC4:1.3
	netbsd-5-0-RC3:1.3
	netbsd-5-0-RC2:1.3
	jym-xensuspend:1.3.0.14
	jym-xensuspend-base:1.3
	netbsd-5-0-RC1:1.3
	netbsd-5:1.3.0.12
	netbsd-5-base:1.3
	mjf-devfs2:1.3.0.10
	mjf-devfs2-base:1.3
	yamt-pf42-base4:1.3
	yamt-pf42-base3:1.3
	hpcarm-cleanup-nbase:1.3
	v4-1-29:1.1.1.4
	yamt-pf42-base2:1.3
	yamt-pf42:1.3.0.8
	yamt-pf42-base:1.3
	keiichi-mipv6:1.3.0.6
	keiichi-mipv6-base:1.3
	cube-autoconf:1.3.0.4
	cube-autoconf-base:1.3
	hpcarm-cleanup:1.3.0.2
	hpcarm-cleanup-base:1.3
	v4-1-23:1.1.1.3
	v4-1-22:1.1.1.3
	v4-1-20:1.1.1.3
	v4-1-19:1.1.1.3
	v4-1-13:1.1.1.3
	v4-1-8:1.1.1.2
	v4-1-6:1.1.1.2
	v4-1-5:1.1.1.2
	v4-1-3:1.1.1.2
	v4-1-1:1.1.1.2
	v3-4-29:1.1.1.1
	v3-4-27:1.1.1.1
	netbsd-1-5-PATCH003:1.2
	v3-4-25:1.1.1.1
	v3-4-23:1.1.1.1
	netbsd-1-5-PATCH002:1.2
	netbsd-1-5-PATCH001:1.2
	v3-4-16:1.1.1.1
	netbsd-1-5-RELEASE:1.2
	netbsd-1-5-BETA2:1.2
	netbsd-1-5-BETA:1.2
	netbsd-1-4-PATCH003:1.2.2.2
	netbsd-1-5-ALPHA2:1.2
	v3-4-9:1.1.1.1
	netbsd-1-5:1.2.0.8
	netbsd-1-5-base:1.2
	v3-4-6:1.1.1.1
	minoura-xpg4dl:1.2.0.6
	minoura-xpg4dl-base:1.2
	v3-4-4:1.1.1.1
	v3-4-3:1.1.1.1
	v3-4-2:1.1.1.1
	v3-4-1:1.1.1.1
	netbsd-1-4-PATCH002:1.2.2.2
	v3-3-8:1.1.1.1
	wrstuden-devbsize-base:1.2
	v3-3-6:1.1.1.1
	wrstuden-devbsize:1.2.0.4
	wrstuden-devbsize-19991221:1.2
	netbsd-1-4:1.2.0.2
	v3-3-5:1.1.1.1
	DARRENR:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2002.05.13.06.36.29;	author martti;	state dead;
branches;
next	1.2;

1.2
date	99.12.11.23.22.14;	author veego;	state Exp;
branches
	1.2.2.1
	1.2.4.1;
next	1.1;

1.1
date	99.12.11.22.24.12;	author veego;	state Exp;
branches
	1.1.1.1;
next	;

1.2.2.1
date	99.12.11.23.22.14;	author he;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	99.12.20.20.56.36;	author he;	state Exp;
branches;
next	;

1.2.4.1
date	99.12.27.18.28.09;	author wrstuden;	state Exp;
branches;
next	;

1.1.1.1
date	99.12.11.22.24.12;	author veego;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.03.28.08.56.26;	author martti;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2006.04.04.16.09.52;	author martti;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2008.05.20.06.45.11;	author darrenr;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2012.01.30.16.03.26;	author darrenr;	state Exp;
branches;
next	;


desc
@@


1.3
log
@ipf regression tests are in regress/sys/kern/ipf
@
text
@#!/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
@


1.2
log
@Add RCS Ids.
@
text
@d3 1
a3 1
#	$NetBSD$
@


1.2.2.1
log
@file dotest was added on branch netbsd-1-4 on 1999-12-20 20:56:36 +0000
@
text
@d1 30
@


1.2.2.2
log
@Pull up revision 1.1 (new) (requested by darrenr):
  Update IPF to version 3.3.5.
@
text
@a0 30
#!/bin/sh
#
#	$NetBSD: dotest,v 1.2.2.1 1999/12/20 20:56:36 he 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
@


1.2.4.1
log
@Pull up to last week's -current.
@
text
@d3 1
a3 1
#	$NetBSD: dotest,v 1.2 1999/12/11 23:22:14 veego Exp $
@


1.1
log
@Initial revision
@
text
@d2 3
@


1.1.1.1
log
@Inital import of IP Filter 3.3.5 under the dist directory.
@
text
@@


1.1.1.2
log
@Import IPFilter 4.1.1
@
text
@a1 1
format=$2
d16 1
a16 1
	echo "$rule" | ../ipftest -F $format -Rbr - -i input/$1 >> results/$1;
@


1.1.1.3
log
@Import IPFilter 4.1.13
@
text
@a1 1
thistest=$1
a2 2
output=$3
tuning=$4
d14 2
a15 5
if [ "$tuning" != "" ] ; then
	tuning="-T $tuning"
fi
echo "${thistest}...";
/bin/cp /dev/null results/${thistest}
d17 1
a17 1
	echo "$rule" | ../ipftest -F $format -Rbr - -i input/${thistest} $tuning>> results/${thistest};
d21 3
a23 3
	echo "--------" >> results/${thistest}
done ) < regress/${thistest}
cmp expected/${thistest} results/${thistest}
d26 1
a26 1
	$TOUCH ${thistest}
@


1.1.1.4
log
@Import IPFilter 4.1.29 to the vendor branch
@
text
@d18 1
a18 7
	case $tuning in
	-*)
		;;
	*)
		tuning="-T $tuning"
		;;
	esac
@


1.1.1.5
log
@Import IPFilter 5.1.1
@
text
@d2 1
a2 1
name=$1
d6 11
a16 5

. ./ipflib.sh

test_init

d26 2
a27 3
echo "${name}...";
n=1
/bin/cp /dev/null results/${name}
d29 11
a39 9
	set_core $name $n
	echo "$rule" | ../ipftest -F $format -Rbr - -i input/${name} $tuning>> results/${name} &
	back=$!
	wait $back
	test_end_leak $?
	n=`expr $n + 1`
	echo "--------" >> results/${name}
done ) < regress/${name}
check_results $name
@

