cfad47cfa3/t3compiler/testscripts/test_make

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
1
#! /bin/sh
2
3
# Make and execute tests
4
5
case "$1" in
6
    -nodef)
7
        shift
8
        $t3make -test -I "$T3_DAT" -a -nodef -nobanner -nopre -Fs "$T3_DAT" -Fo "$T3_OUT" -Fy "$T3_OUT" -o
"$T3_OUT/$1.t3" $2 $3 $4 $5 $6 $7 $8 $9 > "$T3_OUT/$1.log" 2>"$T3_OUT/$1.err"
9
        ;;
10
    -debug)
11
        shift
12
        $t3make -test -d -I "$T3_DAT" -a -nobanner -nopre -Fs "$T3_DAT" -Fo "$T3_OUT" -Fy "$T3_OUT" -o
"$T3_OUT/$1.t3" $2 $3 $4 $5 $6 $7 $8 $9 > "$T3_OUT/$1.log" 2>"$T3_OUT/$1.err"
13
        ;;
14
    -pre)
15
        shift
16
        $t3make -test -I "$T3_DAT" -a -nobanner -Fs "$T3_DAT" -Fo "$T3_OUT" -Fy "$T3_OUT" -o "$T3_OUT/$1.t3"
$2 $3 $4 $5 $6 $7 $8 $9 > "$T3_OUT/$1.log" 2>"$T3_OUT/$1.err"
17
        ;;
18
    *)
19
        $t3make -test -I "$T3_DAT" -a -nobanner -nopre -Fs "$T3_DAT" -Fo "$T3_OUT" -Fy "$T3_OUT" -o
"$T3_OUT/$1.t3" $2 $3 $4 $5 $6 $7 $8 $9 > "$T3_OUT/$1.log" 2>"$T3_OUT/$1.err"
20
        ;;
21
esac
22
cat "$T3_OUT/$1.err" >> "$T3_OUT/$1.log"
23
24
echo "'Make' test: $1"
25
26
$TESTPROGS/test_exec -cs cp437 "$T3_OUT/$1.t3" >> "$T3_OUT/$1.log" 2>"$T3_OUT/$1.err"
27
cat "$T3_OUT/$1.err" >> "$T3_OUT/$1.log"
28
rm "$T3_OUT/$1.err"
29
$SCRIPTS/test_diff "$1"
30
exit $?