]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/atm/RunTest.sh
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / atm / RunTest.sh
1 #!/bin/sh
2 # $FreeBSD$
3
4 . ./Funcs.sh
5
6 #
7 # Just check the legality of the options and pass them along
8 #
9 args=`getopt b:hq $*`
10 if [ $? -ne 0 ] ; then
11         fatal "Usage: $0 [-q] [-b <localbase>]"
12 fi
13
14 usage() {
15         msg "Usage: RunTest.sh [-hq] [-b <localbase>]"
16         msg "Options:"
17         msg " -h                show this info"
18         msg " -b <localbase>    localbase if not /usr/local"
19         msg " -q                be quite"
20         exit 0
21 }
22
23 options=""
24 set -- $args
25 for i
26 do
27         case "$i"
28         in
29
30         -h)     usage;;
31         -b)     options="$options $i $2" ; shift; shift;;
32         -q)     options="$options $i" ; shift;;
33         --)     shift; break;;
34         esac
35 done
36
37 (cd proto_sscop ; sh ./RunTest.sh -u $options)
38 (cd proto_sscfu ; sh ./RunTest.sh -u $options)
39 (cd proto_uni ; sh ./RunTest.sh -u $options)
40 (cd proto_cc ; sh ./RunTest.sh -u $options)
41
42 (cd proto_sscop ; sh ./RunTest.sh $options)
43 (cd proto_sscfu ; sh ./RunTest.sh $options)
44 (cd proto_uni ; sh ./RunTest.sh $options)
45 (cd proto_cc ; sh ./RunTest.sh $options)