head	1.5;
access;
symbols
	perseant-exfatfs-base-20250801:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.24
	perseant-exfatfs-base:1.5
	cjep_sun2x:1.5.0.22
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	cjep_staticlib_x:1.5.0.20
	cjep_staticlib_x-base:1.5
	phil-wifi-20200421:1.5
	phil-wifi-20200411:1.5
	phil-wifi-20200406:1.5
	pgoyette-compat-merge-20190127:1.5
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.5
	pgoyette-compat-1126:1.5
	pgoyette-compat-1020:1.5
	pgoyette-compat-0930:1.5
	pgoyette-compat-0906:1.5
	pgoyette-compat-0728:1.5
	pgoyette-compat-0625:1.5
	pgoyette-compat-0521:1.5
	pgoyette-compat-0502:1.5
	pgoyette-compat-0422:1.5
	pgoyette-compat-0415:1.5
	pgoyette-compat-0407:1.5
	pgoyette-compat-0330:1.5
	pgoyette-compat-0322:1.5
	pgoyette-compat-0315:1.5
	pgoyette-compat:1.5.0.18
	pgoyette-compat-base:1.5
	perseant-stdc-iso10646:1.5.0.16
	perseant-stdc-iso10646-base:1.5
	prg-localcount2-base3:1.5
	prg-localcount2-base2:1.5
	prg-localcount2-base1:1.5
	prg-localcount2:1.5.0.14
	prg-localcount2-base:1.5
	pgoyette-localcount-20170426:1.5
	bouyer-socketcan-base1:1.5
	pgoyette-localcount-20170320:1.5
	bouyer-socketcan:1.5.0.12
	bouyer-socketcan-base:1.5
	pgoyette-localcount-20170107:1.5
	pgoyette-localcount-20161104:1.5
	localcount-20160914:1.5
	pgoyette-localcount-20160806:1.5
	pgoyette-localcount-20160726:1.5
	pgoyette-localcount:1.5.0.10
	pgoyette-localcount-base:1.5
	netbsd-5-2-3-RELEASE:1.4
	netbsd-5-1-5-RELEASE:1.4
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.5
	tls-earlyentropy:1.5.0.6
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-5-2-2-RELEASE:1.4
	netbsd-5-1-4-RELEASE:1.4
	netbsd-5-2-1-RELEASE:1.4
	netbsd-5-1-3-RELEASE:1.4
	agc-symver:1.5.0.8
	agc-symver-base:1.5
	tls-maxphys-base:1.5
	yamt-pagecache-base8:1.5
	netbsd-5-2:1.4.0.2
	yamt-pagecache-base7:1.5
	netbsd-5-2-RELEASE:1.4
	netbsd-5-2-RC1:1.4
	yamt-pagecache-base6:1.5
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-5-1-2-RELEASE:1.4
	v5-1-1:1.1.1.4
	netbsd-5-1-1-RELEASE:1.4
	yamt-pagecache-base3:1.5
	yamt-pagecache-base2:1.5
	yamt-pagecache:1.5.0.4
	yamt-pagecache-base:1.5
	bouyer-quota2-nbase:1.5
	bouyer-quota2:1.5.0.2
	bouyer-quota2-base:1.5
	matt-nb5-mips64-premerge-20101231:1.4
	matt-nb5-pq3:1.4.0.14
	matt-nb5-pq3-base:1.4
	netbsd-5-1:1.4.0.12
	netbsd-5-1-RELEASE:1.4
	netbsd-5-1-RC4:1.4
	matt-nb5-mips64-k15:1.4
	netbsd-5-1-RC3:1.4
	netbsd-5-1-RC2:1.4
	netbsd-5-1-RC1:1.4
	v4-1-34:1.1.1.3
	netbsd-5-0-2-RELEASE:1.4
	matt-nb5-mips64-premerge-20091211:1.4
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.4
	matt-nb4-mips64-k7-u2a-k9b:1.4
	matt-nb5-mips64-u1-k1-k5:1.4
	v4-1-33:1.1.1.3
	matt-nb5-mips64:1.4.0.10
	netbsd-5-0-1-RELEASE:1.4
	jym-xensuspend-nbase:1.5
	netbsd-5-0:1.4.0.8
	netbsd-5-0-RELEASE:1.4
	netbsd-5-0-RC4:1.4
	netbsd-5-0-RC3:1.4
	netbsd-5-0-RC2:1.4
	jym-xensuspend:1.4.0.6
	jym-xensuspend-base:1.5
	netbsd-5-0-RC1:1.4
	netbsd-5:1.4.0.4
	netbsd-5-base:1.4
	matt-mips64-base2:1.4
	matt-mips64:1.3.0.28
	netbsd-4-0-1-RELEASE:1.3
	wrstuden-revivesa-base-3:1.4
	wrstuden-revivesa-base-2:1.4
	wrstuden-fixsa-newbase:1.3
	wrstuden-revivesa-base-1:1.4
	yamt-pf42-base4:1.4
	yamt-pf42-base3:1.4
	hpcarm-cleanup-nbase:1.4
	v4-1-29:1.1.1.3
	yamt-pf42-baseX:1.3
	yamt-pf42-base2:1.3
	wrstuden-revivesa:1.3.0.26
	wrstuden-revivesa-base:1.4
	yamt-pf42:1.3.0.24
	yamt-pf42-base:1.3
	keiichi-mipv6:1.3.0.22
	keiichi-mipv6-base:1.3
	matt-armv6-nbase:1.3
	matt-armv6-prevmlocking:1.3
	wrstuden-fixsa-base-1:1.3
	netbsd-4-0:1.3.0.20
	netbsd-4-0-RELEASE:1.3
	cube-autoconf:1.3.0.18
	cube-autoconf-base:1.3
	netbsd-4-0-RC5:1.3
	netbsd-4-0-RC4:1.3
	netbsd-4-0-RC3:1.3
	netbsd-4-0-RC2:1.3
	netbsd-4-0-RC1:1.3
	matt-armv6:1.3.0.16
	matt-armv6-base:1.3
	matt-mips64-base:1.3
	hpcarm-cleanup:1.3.0.14
	hpcarm-cleanup-base:1.3
	netbsd-3-1-1-RELEASE:1.3
	netbsd-3-0-3-RELEASE:1.3
	ipfilter-4-1-23-pullup:1.3
	v4-1-23:1.1.1.2
	BEFORE-IPF-4_1_23:1.3
	ipfilter-4-1-22-pullup:1.3
	wrstuden-fixsa:1.3.0.12
	wrstuden-fixsa-base:1.3
	v4-1-22:1.1.1.2
	BEFORE-IPF-4_1_22:1.3
	ipfilter-4-1-20-pullup:1.3
	v4-1-20:1.1.1.2
	BEFORE-IPF-4_1_20:1.3
	v4-1-19:1.1.1.2
	BEFORE-IPF-4_1_19:1.3
	abandoned-netbsd-4-base:1.3
	abandoned-netbsd-4:1.3.0.6
	netbsd-3-1:1.3.0.8
	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.3.0.10
	netbsd-4-base:1.3
	netbsd-3-0-1-RELEASE:1.3
	v4-1-13:1.1.1.2
	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.5
date	2009.02.20.21.45.49;	author jmmv;	state dead;
branches;
next	1.4;

1.4
date	2008.05.20.07.08.08;	author darrenr;	state Exp;
branches
	1.4.6.1;
next	1.3;

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

1.2
date	2002.05.13.06.34.15;	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.4.6.1
date	2009.05.13.19.18.49;	author jym;	state dead;
branches;
next	;

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

1.3.26.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	2008.05.20.06.45.54;	author darrenr;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2012.01.30.16.06.33;	author darrenr;	state Exp;
branches;
next	;


desc
@@


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

if [ $3 = hex ] ; then
	format="-xF $2"
else
	format="-F $2"
fi
if [ "$4" != "" ] ; then
	case $4 in
	-*)
		format="$4 $format"
		;;
	*)
		format="-T $4 $format"
		;;
	esac
fi
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 $format -RbN - -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.4
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: nattest,v 1.3 2004/07/23 05:39:04 martti Exp $
@


1.4.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: nattest,v 1.4 2008/05/20 07:08:08 darrenr Exp $
@


1.3
log
@Upgraded IPFilter to 4.1.3
@
text
@d3 1
a3 1
# $NetBSD: nattest,v 1.4 2004/06/06 02:05:31 martti Exp $
d14 8
a21 1
	format="-T $4 $format"
@


1.3.26.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d3 1
a3 1
# $NetBSD: nattest,v 1.3 2004/07/23 05:39:04 martti Exp $
d14 1
a14 8
	case $4 in
	-*)
		format="$4 $format"
		;;
	*)
		format="-T $4 $format"
		;;
	esac
@


1.3.24.1
log
@sync with head
@
text
@d3 1
a3 1
# $NetBSD: nattest,v 1.3 2004/07/23 05:39:04 martti Exp $
d14 1
a14 8
	case $4 in
	-*)
		format="$4 $format"
		;;
	*)
		format="-T $4 $format"
		;;
	esac
@


1.2
log
@Added ipf regression tests
@
text
@d3 1
a3 1
# $NetBSD$
d5 11
a27 2
TESTDIR=$2
[ -z "$2" ] && TESTDIR=${PWD}
d30 1
a30 1
	echo "$rule" | ipftest -Nbr - -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 11
TESTDIR=$1
shift

if [ $3 = hex ] ; then
	format="-xF $2"
else
	format="-F $2"
fi
if [ "$4" != "" ] ; then
	format="-T $4 $format"
fi
d17 2
d21 1
a21 1
	echo "$rule" | ipftest $format -RbN - -i ${TESTDIR}/input/$1 >> results/$1;
@


1.1
log
@Initial revision
@
text
@d2 3
d17 2
d21 1
a21 1
	echo "$rule" | ../ipftest -Nbr - -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 8
if [ $3 = hex ] ; then
	format="-xF $2"
else
	format="-F $2"
fi
if [ "$4" != "" ] ; then
	format="-T $4 $format"
fi
d16 1
a16 1
	echo "$rule" | ../ipftest $format -RbN - -i input/$1 >> results/$1;
@


1.1.1.3
log
@Import IPFilter 4.1.29 to the vendor branch
@
text
@d8 1
a8 8
	case $4 in
	-*)
		format="$4 $format"
		;;
	*)
		format="-T $4 $format"
		;;
	esac
@


1.1.1.4
log
@Import IPFilter 5.1.1
@
text
@a1 6
name=$1

. ./ipflib.sh

test_init

d17 13
a29 4

echo "$name...";
n=1
/bin/cp /dev/null results/$name
d31 11
a41 9
	set_core $name $n
	echo "$rule" | ../ipftest $format -DRbN - -i input/$name >>results/$name &
	back=$!
	wait $back
	test_end_leak $?
	n=`expr $n + 1`
	echo "-------------------------------" >> results/$name
done ) < regress/$name
check_results $name
@

