head	1.6;
access;
symbols
	perseant-exfatfs-base-20250801:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.24
	perseant-exfatfs-base:1.6
	cjep_sun2x:1.6.0.22
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	cjep_staticlib_x:1.6.0.20
	cjep_staticlib_x-base:1.6
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	phil-wifi-20200406:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	pgoyette-compat-0728:1.6
	pgoyette-compat-0625:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	pgoyette-compat:1.6.0.18
	pgoyette-compat-base:1.6
	perseant-stdc-iso10646:1.6.0.16
	perseant-stdc-iso10646-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.14
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	pgoyette-localcount-20170320:1.6
	bouyer-socketcan:1.6.0.12
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	pgoyette-localcount-20161104:1.6
	localcount-20160914:1.6
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.10
	pgoyette-localcount-base:1.6
	netbsd-5-2-3-RELEASE:1.5
	netbsd-5-1-5-RELEASE:1.5
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.6
	tls-earlyentropy:1.6.0.6
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	netbsd-5-2-2-RELEASE:1.5
	netbsd-5-1-4-RELEASE:1.5
	netbsd-5-2-1-RELEASE:1.5
	netbsd-5-1-3-RELEASE:1.5
	agc-symver:1.6.0.8
	agc-symver-base:1.6
	tls-maxphys-base:1.6
	yamt-pagecache-base8:1.6
	netbsd-5-2:1.5.0.2
	yamt-pagecache-base7:1.6
	netbsd-5-2-RELEASE:1.5
	netbsd-5-2-RC1:1.5
	yamt-pagecache-base6:1.6
	yamt-pagecache-base5:1.6
	yamt-pagecache-base4:1.6
	netbsd-5-1-2-RELEASE:1.5
	v5-1-1:1.1.1.5
	netbsd-5-1-1-RELEASE:1.5
	yamt-pagecache-base3:1.6
	yamt-pagecache-base2:1.6
	yamt-pagecache:1.6.0.4
	yamt-pagecache-base:1.6
	bouyer-quota2-nbase:1.6
	bouyer-quota2:1.6.0.2
	bouyer-quota2-base:1.6
	matt-nb5-mips64-premerge-20101231:1.5
	matt-nb5-pq3:1.5.0.14
	matt-nb5-pq3-base:1.5
	netbsd-5-1:1.5.0.12
	netbsd-5-1-RELEASE:1.5
	netbsd-5-1-RC4:1.5
	matt-nb5-mips64-k15:1.5
	netbsd-5-1-RC3:1.5
	netbsd-5-1-RC2:1.5
	netbsd-5-1-RC1:1.5
	v4-1-34:1.1.1.4
	netbsd-5-0-2-RELEASE:1.5
	matt-nb5-mips64-premerge-20091211:1.5
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5
	matt-nb4-mips64-k7-u2a-k9b:1.5
	matt-nb5-mips64-u1-k1-k5:1.5
	v4-1-33:1.1.1.4
	matt-nb5-mips64:1.5.0.10
	netbsd-5-0-1-RELEASE:1.5
	jym-xensuspend-nbase:1.6
	netbsd-5-0:1.5.0.8
	netbsd-5-0-RELEASE:1.5
	netbsd-5-0-RC4:1.5
	netbsd-5-0-RC3:1.5
	netbsd-5-0-RC2:1.5
	jym-xensuspend:1.5.0.6
	jym-xensuspend-base:1.6
	netbsd-5-0-RC1:1.5
	netbsd-5:1.5.0.4
	netbsd-5-base:1.5
	matt-mips64-base2:1.5
	matt-mips64:1.4.0.22
	netbsd-4-0-1-RELEASE:1.4
	wrstuden-revivesa-base-3:1.5
	wrstuden-revivesa-base-2:1.5
	wrstuden-fixsa-newbase:1.4
	wrstuden-revivesa-base-1:1.5
	yamt-pf42-base4:1.5
	yamt-pf42-base3:1.5
	hpcarm-cleanup-nbase:1.5
	v4-1-29:1.1.1.4
	yamt-pf42-baseX:1.4
	yamt-pf42-base2:1.4
	wrstuden-revivesa:1.4.0.20
	wrstuden-revivesa-base:1.5
	yamt-pf42:1.4.0.18
	yamt-pf42-base:1.4
	keiichi-mipv6:1.4.0.16
	keiichi-mipv6-base:1.4
	matt-armv6-nbase:1.4
	matt-armv6-prevmlocking:1.4
	wrstuden-fixsa-base-1:1.4
	netbsd-4-0:1.4.0.14
	netbsd-4-0-RELEASE:1.4
	cube-autoconf:1.4.0.12
	cube-autoconf-base:1.4
	netbsd-4-0-RC5:1.4
	netbsd-4-0-RC4:1.4
	netbsd-4-0-RC3:1.4
	netbsd-4-0-RC2:1.4
	netbsd-4-0-RC1:1.4
	matt-armv6:1.4.0.10
	matt-armv6-base:1.4
	matt-mips64-base:1.4
	hpcarm-cleanup:1.4.0.8
	hpcarm-cleanup-base:1.4
	netbsd-3-1-1-RELEASE:1.3
	netbsd-3-0-3-RELEASE:1.3
	ipfilter-4-1-23-pullup:1.4
	v4-1-23:1.1.1.3
	BEFORE-IPF-4_1_23:1.4
	ipfilter-4-1-22-pullup:1.4
	wrstuden-fixsa:1.4.0.6
	wrstuden-fixsa-base:1.4
	v4-1-22:1.1.1.3
	BEFORE-IPF-4_1_22:1.4
	ipfilter-4-1-20-pullup:1.4
	v4-1-20:1.1.1.3
	BEFORE-IPF-4_1_20:1.4
	v4-1-19:1.1.1.3
	BEFORE-IPF-4_1_19:1.4
	abandoned-netbsd-4-base:1.4
	abandoned-netbsd-4:1.4.0.2
	netbsd-3-1:1.3.0.6
	netbsd-3-1-RELEASE:1.3
	netbsd-3-0-2-RELEASE:1.3
	netbsd-3-1-RC4:1.3
	netbsd-3-1-RC3:1.3
	netbsd-3-1-RC2:1.3
	netbsd-3-1-RC1:1.3
	netbsd-4:1.4.0.4
	netbsd-4-base:1.4
	netbsd-3-0-1-RELEASE:1.3
	v4-1-13:1.1.1.3
	BEFORE-IPF-4_1_13:1.3
	netbsd-3-0:1.3.0.4
	netbsd-3-0-RELEASE:1.3
	netbsd-3-0-RC6:1.3
	netbsd-3-0-RC5:1.3
	netbsd-3-0-RC4:1.3
	netbsd-3-0-RC3:1.3
	netbsd-3-0-RC2:1.3
	netbsd-3-0-RC1:1.3
	netbsd-2-0-3-RELEASE:1.2.4.1
	netbsd-2-1:1.2.4.1.0.4
	netbsd-2-1-RELEASE:1.2.4.1
	netbsd-2-1-RC6:1.2.4.1
	netbsd-2-1-RC5:1.2.4.1
	netbsd-2-1-RC4:1.2.4.1
	netbsd-2-1-RC3:1.2.4.1
	netbsd-2-1-RC2:1.2.4.1
	netbsd-2-1-RC1:1.2.4.1
	v4-1-8:1.1.1.2
	netbsd-2-0-2-RELEASE:1.2.4.1
	netbsd-3:1.3.0.2
	netbsd-3-base:1.3
	v4-1-6:1.1.1.2
	v4-1-5:1.1.1.2
	netbsd-2-0-1-RELEASE:1.2.4.1
	netbsd-2:1.2.4.1.0.2
	netbsd-2-base:1.2.4.1
	netbsd-2-0-RELEASE:1.2.4.1
	netbsd-2-0-RC5:1.2.4.1
	netbsd-2-0-RC4:1.2.4.1
	netbsd-2-0-RC3:1.2.4.1
	netbsd-2-0-RC2:1.2.4.1
	netbsd-2-0-RC1:1.2.4.1
	v4-1-3:1.1.1.2
	netbsd-2-0:1.2.0.4
	netbsd-2-0-base:1.2
	v4-1-1:1.1.1.2
	netbsd-1-6-PATCH002-RELEASE:1.2
	netbsd-1-6-PATCH002:1.2
	netbsd-1-6-PATCH002-RC4:1.2
	netbsd-1-6-PATCH002-RC3:1.2
	netbsd-1-6-PATCH002-RC2:1.2
	netbsd-1-6-PATCH002-RC1:1.2
	netbsd-1-6-PATCH001:1.2
	netbsd-1-6-PATCH001-RELEASE:1.2
	netbsd-1-6-PATCH001-RC3:1.2
	netbsd-1-6-PATCH001-RC2:1.2
	netbsd-1-6-PATCH001-RC1:1.2
	fvdl_fs64_base:1.2
	v3-4-29:1.1.1.1
	netbsd-1-6-RELEASE:1.2
	netbsd-1-6-RC3:1.2
	netbsd-1-6-RC2:1.2
	netbsd-1-6-RC1:1.2
	netbsd-1-6:1.2.0.2
	netbsd-1-6-base:1.2
	v3-4-27:1.1.1.1
	DARRENR:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2009.02.20.21.45.48;	author jmmv;	state dead;
branches;
next	1.5;

1.5
date	2008.05.20.07.08.08;	author darrenr;	state Exp;
branches
	1.5.6.1;
next	1.4;

1.4
date	2006.04.04.16.17.19;	author martti;	state Exp;
branches
	1.4.18.1
	1.4.20.1;
next	1.3;

1.3
date	2004.07.23.05.39.04;	author martti;	state Exp;
branches;
next	1.2;

1.2
date	2002.05.13.06.34.14;	author martti;	state Exp;
branches
	1.2.4.1;
next	1.1;

1.1
date	2002.05.13.06.33.09;	author martti;	state Exp;
branches
	1.1.1.1;
next	;

1.5.6.1
date	2009.05.13.19.18.49;	author jym;	state dead;
branches;
next	;

1.4.18.1
date	2008.06.04.02.04.35;	author yamt;	state Exp;
branches;
next	;

1.4.20.1
date	2008.06.23.04.29.56;	author wrstuden;	state Exp;
branches;
next	;

1.2.4.1
date	2004.08.15.14.51.48;	author tron;	state Exp;
branches;
next	;

1.1.1.1
date	2002.05.13.06.33.09;	author martti;	state Exp;
branches;
next	1.1.1.2;

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

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

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

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


desc
@@


1.6
log
@Remove the kernel and ipf tests that have been converted to atf and now
live in the tests subtree.
@
text
@#!/bin/sh
#
# $NetBSD: dotest,v 1.5 2008/05/20 07:08:08 darrenr Exp $
#
TESTDIR=$1
shift

thistest=$1
format=$2
output=$3
tuning=$4
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 [ "$tuning" != "" ] ; then
	case $tuning in
	-*)
		;;
	*)
		tuning="-T $tuning"
		;;
	esac
fi
echo "${thistest}...";
/bin/cp /dev/null results/${thistest}
( while read rule; do
	echo "$rule" | ipftest -F $format -Rbr - -i ${TESTDIR}/input/${thistest} $tuning>> results/${thistest};
	if [ $? -ne 0 ] ; then
		exit 1;
	fi
	echo "--------" >> results/${thistest}
done ) < ${TESTDIR}/regress/${thistest}
cmp ${TESTDIR}/expected/${thistest} results/${thistest}
status=$?
if [ $status = 0 ] ; then
	$TOUCH ${thistest}
fi
exit $status
@


1.5
log
@Pullup IPFilter 4.1.29 from the vendor branch to HEAD.
See src/dist/ipf/HISTORY for a list of bug fixes since 4.1.23 (although
a few are already in NetBSD)
@
text
@d3 1
a3 1
# $NetBSD: dotest,v 1.4 2006/04/04 16:17:19 martti Exp $
@


1.5.6.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d3 1
a3 1
# $NetBSD: dotest,v 1.5 2008/05/20 07:08:08 darrenr Exp $
@


1.4
log
@Upgraded IPFilter to 4.1.13
@
text
@d3 1
a3 1
# $NetBSD$
d24 7
a30 1
	tuning="-T $tuning"
@


1.4.20.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d3 1
a3 1
# $NetBSD: dotest,v 1.4 2006/04/04 16:17:19 martti Exp $
d24 1
a24 7
	case $tuning in
	-*)
		;;
	*)
		tuning="-T $tuning"
		;;
	esac
@


1.4.18.1
log
@sync with head
@
text
@d3 1
a3 1
# $NetBSD: dotest,v 1.4 2006/04/04 16:17:19 martti Exp $
d24 1
a24 7
	case $tuning in
	-*)
		;;
	*)
		tuning="-T $tuning"
		;;
	esac
@


1.3
log
@Upgraded IPFilter to 4.1.3
@
text
@d3 1
a3 1
# $NetBSD: dotest,v 1.3 2004/06/06 00:51:31 martti Exp $
d8 1
d10 2
d23 5
a27 2
echo "$1...";
/bin/cp /dev/null results/$1
d29 1
a29 1
	echo "$rule" | ipftest -F $format -Rbr - -i ${TESTDIR}/input/$1 >> results/$1;
d33 3
a35 3
	echo "--------" >> results/$1
done ) < ${TESTDIR}/regress/$1
cmp ${TESTDIR}/expected/$1 results/$1
d38 1
a38 1
	$TOUCH $1
@


1.2
log
@Added ipf regression tests
@
text
@d3 1
a3 1
# $NetBSD$
d5 4
a20 2
TESTDIR=$2
[ -z "$2" ] && TESTDIR=${PWD}
d23 1
a23 1
	echo "$rule" | ipftest -br - -i ${TESTDIR}/input/$1 >> results/$1;
@


1.2.4.1
log
@Pull up revision 1.3 (requested by martti in ticket #763):
Upgraded IPFilter to 4.1.3
@
text
@a4 4
TESTDIR=$1
shift

format=$2
d17 2
d21 1
a21 1
	echo "$rule" | ipftest -F $format -Rbr - -i ${TESTDIR}/input/$1 >> results/$1;
@


1.1
log
@Initial revision
@
text
@d2 3
d17 2
d21 1
a21 1
	echo "$rule" | ../ipftest -br - -i input/$1 >> results/$1;
d26 2
a27 2
done ) < regress/$1
cmp expected/$1 results/$1
@


1.1.1.1
log
@Import IPFilter 3.4.27
@
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
@

