config root man

Current Path : /compat/linux/proc/68247/root/usr/src/contrib/ipfilter/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/root/usr/src/contrib/ipfilter/test/logtest

#!/bin/sh
# $FreeBSD: release/9.1.0/contrib/ipfilter/test/logtest 145519 2005-04-25 18:20:15Z darrenr $
format=$2
mkdir -p results
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...";

case `uname -s` in
OSF1)
	GMT=:
	;;
*)
	GMT=GMT
	;;
esac

/bin/cp /dev/null results/$1
/bin/cp /dev/null results/$1.b

( while read rule; do
	echo $rule >> results/$1 
	echo $rule | ../ipftest -br - -F $format -i input/$1 -l logout > /dev/null
	if [ $? -ne 0 ] ; then
		/bin/rm -f logout
		exit 1
	fi
	TZ=$GMT ../ipmon -P /dev/null -f logout >> results/$1
        echo "--------" >> results/$1
	TZ=$GMT ../ipmon -P /dev/null -bf logout >> results/$1.b
        echo "--------" >> results/$1.b
done ) < regress/$1
../ipftest -br regress/$1 -F $format -i input/$1 -l logout > /dev/null
TZ=$GMT ../ipmon -P /dev/null -f logout >> results/$1
echo "--------" >> results/$1
TZ=$GMT ../ipmon -P /dev/null -bf logout >> results/$1.b
echo "--------" >> results/$1.b

cmp expected/$1 results/$1
status=$?
if [ $status -ne 0 ] ; then
	exit $status
fi
cmp expected/$1.b results/$1.b
status=$?
if [ $status -ne 0 ] ; then
	exit $status
fi
/bin/rm -f logout
$TOUCH $1
exit 0

Man Man