config root man

Current Path : /usr/src/tools/regression/acct/

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 : //usr/src/tools/regression/acct/regress.t

#!/bin/sh
#
# $FreeBSD: release/9.1.0/tools/regression/acct/regress.t 217064 2011-01-06 20:05:24Z keramida $
#

if test -z "${DIR}" ; then
	DIR=$( make -V .OBJDIR )
fi
if test -z "${DIR}" ; then
	DIR=$( dirname $0 )
fi

check()
{
	NUM=$1
	shift
	if $DIR/pack $*
	then
		echo "ok $NUM"
	else
		echo "not ok $NUM"
	fi
}

(cd $DIR ; make pack) >/dev/null 2>&1

echo 1..7

check 1 0 0
check 2 0 1
check 3 1 0
check 4 1 999999
check 5 1 1000000
check 6 2147483647 999999
check 7 10000000

(cd $DIR ; make clean) >/dev/null 2>&1

exit 0

Man Man