]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/acct/regress.t
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / acct / regress.t
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 if test -z "${DIR}" ; then
7         DIR=$( make -V .OBJDIR )
8 fi
9 if test -z "${DIR}" ; then
10         DIR=$( dirname $0 )
11 fi
12
13 check()
14 {
15         NUM=$1
16         shift
17         if $DIR/pack $*
18         then
19                 echo "ok $NUM"
20         else
21                 echo "not ok $NUM"
22         fi
23 }
24
25 (cd $DIR ; make pack) >/dev/null 2>&1
26
27 echo 1..7
28
29 check 1 0 0
30 check 2 0 1
31 check 3 1 0
32 check 4 1 999999
33 check 5 1 1000000
34 check 6 2147483647 999999
35 check 7 10000000
36
37 (cd $DIR ; make clean) >/dev/null 2>&1
38
39 exit 0