head	1.7;
access;
symbols
	perseant-exfatfs-base-20250801:1.7
	perseant-exfatfs-base-20240630:1.7
	perseant-exfatfs:1.7.0.46
	perseant-exfatfs-base:1.7
	cjep_sun2x:1.7.0.44
	cjep_sun2x-base:1.7
	cjep_staticlib_x-base1:1.7
	cjep_staticlib_x:1.7.0.42
	cjep_staticlib_x-base:1.7
	phil-wifi-20200421:1.7
	phil-wifi-20200411:1.7
	phil-wifi-20200406:1.7
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	pgoyette-compat-0728:1.7
	pgoyette-compat-0625:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	pgoyette-compat:1.7.0.40
	pgoyette-compat-base:1.7
	perseant-stdc-iso10646:1.7.0.38
	perseant-stdc-iso10646-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.36
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	bouyer-socketcan:1.7.0.34
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	pgoyette-localcount-20161104:1.7
	localcount-20160914:1.7
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.32
	pgoyette-localcount-base:1.7
	netbsd-5-2-3-RELEASE:1.7
	netbsd-5-1-5-RELEASE:1.7
	yamt-pagecache-base9:1.7
	yamt-pagecache-tag8:1.7
	tls-earlyentropy:1.7.0.28
	tls-earlyentropy-base:1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7
	riastradh-drm2-base3:1.7
	netbsd-5-2-2-RELEASE:1.7
	netbsd-5-1-4-RELEASE:1.7
	netbsd-5-2-1-RELEASE:1.7
	netbsd-5-1-3-RELEASE:1.7
	agc-symver:1.7.0.30
	agc-symver-base:1.7
	tls-maxphys-base:1.7
	yamt-pagecache-base8:1.7
	netbsd-5-2:1.7.0.26
	yamt-pagecache-base7:1.7
	netbsd-5-2-RELEASE:1.7
	netbsd-5-2-RC1:1.7
	yamt-pagecache-base6:1.7
	yamt-pagecache-base5:1.7
	yamt-pagecache-base4:1.7
	netbsd-5-1-2-RELEASE:1.7
	netbsd-5-1-1-RELEASE:1.7
	yamt-pagecache-base3:1.7
	yamt-pagecache-base2:1.7
	yamt-pagecache:1.7.0.24
	yamt-pagecache-base:1.7
	bouyer-quota2-nbase:1.7
	bouyer-quota2:1.7.0.22
	bouyer-quota2-base:1.7
	matt-nb5-pq3:1.7.0.20
	matt-nb5-pq3-base:1.7
	netbsd-5-1:1.7.0.18
	netbsd-5-1-RELEASE:1.7
	netbsd-5-1-RC4:1.7
	netbsd-5-1-RC3:1.7
	netbsd-5-1-RC2:1.7
	netbsd-5-1-RC1:1.7
	netbsd-5-0-2-RELEASE:1.7
	netbsd-5-0-1-RELEASE:1.7
	jym-xensuspend-nbase:1.7
	netbsd-5-0:1.7.0.16
	netbsd-5-0-RELEASE:1.7
	netbsd-5-0-RC4:1.7
	netbsd-5-0-RC3:1.7
	netbsd-5-0-RC2:1.7
	jym-xensuspend:1.7.0.14
	jym-xensuspend-base:1.7
	netbsd-5-0-RC1:1.7
	netbsd-5:1.7.0.12
	netbsd-5-base:1.7
	mjf-devfs2:1.7.0.10
	mjf-devfs2-base:1.7
	yamt-pf42-base4:1.7
	yamt-pf42-base3:1.7
	hpcarm-cleanup-nbase:1.7
	yamt-pf42-base2:1.7
	yamt-pf42:1.7.0.8
	yamt-pf42-base:1.7
	keiichi-mipv6-nbase:1.7
	keiichi-mipv6:1.7.0.6
	keiichi-mipv6-base:1.7
	cube-autoconf:1.7.0.4
	cube-autoconf-base:1.7
	hpcarm-cleanup:1.7.0.2
	hpcarm-cleanup-base:1.7
	netbsd-1-5-PATCH003:1.6
	netbsd-1-5-PATCH002:1.6
	netbsd-1-5-PATCH001:1.6
	netbsd-1-5-RELEASE:1.6
	netbsd-1-5-BETA2:1.6
	netbsd-1-5-BETA:1.6
	netbsd-1-4-PATCH003:1.4
	netbsd-1-5-ALPHA2:1.6
	netbsd-1-5:1.6.0.2
	netbsd-1-5-base:1.6
	minoura-xpg4dl-base:1.5
	minoura-xpg4dl:1.5.0.2
	netbsd-1-4-PATCH002:1.4
	wrstuden-devbsize-19991221:1.4
	wrstuden-devbsize:1.4.0.6
	wrstuden-devbsize-base:1.4
	comdex-fall-1999:1.4.0.4
	comdex-fall-1999-base:1.4
	netbsd-1-4-PATCH001:1.4
	netbsd-1-4-RELEASE:1.4
	netbsd-1-4:1.4.0.2
	netbsd-1-4-base:1.4
	netbsd-1-3-PATCH003:1.1.1.1.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.1.1.1.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.1.1.1.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.1.1.1.2.1
	v3-2-10:1.1.1.1
	v3-2-9:1.1.1.1
	v3-2-7:1.1.1.1
	v3-2-5:1.1.1.1
	netbsd-1-3-PATCH002:1.1.1.1
	netbsd-1-3-PATCH001:1.1.1.1
	netbsd-1-3-RELEASE:1.1.1.1
	netbsd-1-3-BETA:1.1.1.1
	v3-2-1:1.1.1.1
	v3-2:1.1.1.1
	netbsd-1-3:1.1.1.1.0.2
	netbsd-1-3-base:1.1.1.1
	v3-2beta5:1.1.1.1
	v3-2-beta1:1.1.1.1
	v3-2-a7-take2:1.1.1.1
	v3-2-a7:1.1.1.1
	V3_2ALPHA2:1.1.1.1
	DARRENR:1.1.1;
locks; strict;
comment	@# @;


1.7
date	2002.05.13.06.35.48;	author martti;	state dead;
branches;
next	1.6;

1.6
date	2000.06.12.13.35.52;	author veego;	state Exp;
branches;
next	1.5;

1.5
date	2000.02.06.13.05.26;	author veego;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	98.05.29.21.01.45;	author veego;	state Exp;
branches;
next	1.3;

1.3
date	98.05.29.20.57.10;	author veego;	state Exp;
branches;
next	1.2;

1.2
date	98.01.09.08.09.28;	author perry;	state Exp;
branches;
next	1.1;

1.1
date	97.03.29.02.49.56;	author darrenr;	state Exp;
branches
	1.1.1.1;
next	;

1.5.2.1
date	2000.06.22.18.01.00;	author minoura;	state Exp;
branches;
next	;

1.1.1.1
date	97.03.29.02.49.56;	author darrenr;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	98.07.23.00.42.35;	author mellon;	state Exp;
branches;
next	;


desc
@@


1.7
log
@ipf regression tests are in regress/sys/kern/ipf
@
text
@#!/bin/sh
#
#	$NetBSD: dotest,v 1.6 2000/06/12 13:35:52 veego Exp $
#

echo "$1...";
TESTDIR=$2;
[ -z "$2" ] && TESTDIR=$PWD'/../../../../dist/ipf/test';
/bin/cp /dev/null results/$1
( while read rule; do
	echo "$rule" | ipftest -br - -i $TESTDIR/input/$1 >> results/$1;
	if [ $? -ne 0 ] ; then
		exit 1;
	fi
	echo "--------" >> results/$1
done ) < $TESTDIR/regress/$1
cmp $TESTDIR/expected/$1 results/$1
status=$?
if [ $status = 0 ] ; then
	touch $1
fi
exit $status
@


1.6
log
@Make it possible to use obj dirs for the 'make tests' in the test subdir.
@
text
@d3 1
a3 1
#	$NetBSD: dotest,v 1.5 2000/02/06 13:05:26 veego Exp $
@


1.5
log
@First cut to make it work again.
TODO: make it work with obj dirs.
@
text
@d3 1
a3 1
#	$NetBSD: dotest,v 1.4 1998/05/29 21:01:45 veego Exp $
d7 2
d11 1
a11 1
	echo "$rule" | ipftest -br - -i ../../../../dist/ipf/test/input/$1 >> results/$1;
d16 2
a17 2
done ) < ../../../../dist/ipf/test/regress/$1
cmp ../../../../dist/ipf/test/expected/$1 results/$1
@


1.5.2.1
log
@Sync w/ netbsd-1-5-base.
@
text
@d3 1
a3 1
#	$NetBSD: dotest,v 1.6 2000/06/12 13:35:52 veego Exp $
a6 2
TESTDIR=$2;
[ -z "$2" ] && TESTDIR=$PWD'/../../../../dist/ipf/test';
d9 1
a9 1
	echo "$rule" | ipftest -br - -i $TESTDIR/input/$1 >> results/$1;
d14 2
a15 2
done ) < $TESTDIR/regress/$1
cmp $TESTDIR/expected/$1 results/$1
@


1.4
log
@Ups, again put the NetBSD rcs id into this files.
@
text
@d3 1
a3 1
#	$NetBSD$
a4 21
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

if [ -f ../ipftest ] ; then
	IPFTEST=../ipftest
else
	if [ -f /usr/sbin/ipftest ] ; then
		IPFTEST=/usr/sbin/ipftest
	else
		IPFTEST=ipftest
	fi
fi
d9 1
a9 1
	echo "$rule" | $IPFTEST -br - -i input/$1 >> results/$1;
d13 3
a15 2
done ) < regress/$1
cmp expected/$1 results/$1
d18 1
a18 1
	$TOUCH $1
@


1.3
log
@A little better support to make it work in an NetBSD tree.
@
text
@d2 3
@


1.2
log
@RCS Id Police.
@
text
@a1 3
#
#	$NetBSD$
#
d13 11
d27 1
a27 1
	echo "$rule" | ../ipftest -br - -i input/$1 >> results/$1;
@


1.1
log
@Initial revision
@
text
@d2 3
@


1.1.1.1
log
@Properly import usr.sbin/ipf updates
@
text
@@


1.1.1.1.2.1
log
@Pull up 1.4 (veego)
@
text
@a1 3
#
#	$NetBSD: dotest,v 1.4 1998/05/29 21:01:45 veego Exp $
#
a12 11

if [ -f ../ipftest ] ; then
	IPFTEST=../ipftest
else
	if [ -f /usr/sbin/ipftest ] ; then
		IPFTEST=/usr/sbin/ipftest
	else
		IPFTEST=ipftest
	fi
fi

d16 1
a16 1
	echo "$rule" | $IPFTEST -br - -i input/$1 >> results/$1;
@
