3 TESTSUITE_PATH
=$HOME/gcc
/gcc-3.2
/gcc
/testsuite
/gcc.c-torture
4 TCC
="./tcc -B. -I. -DNO_TRAMPOLINES"
10 for src
in $TESTSUITE_PATH/compile
/*.c
; do
11 echo $TCC -o /tmp
/tst.o
-c $src
12 $TCC -o /tmp
/tst.o
-c $src >> tcc.fail
2>&1
13 if [ "$?" = "0" ] ; then
15 nb_ok
=$
(( $nb_ok + 1 ))
18 nb_failed
=$
(( $nb_failed + 1 ))
20 echo "$result: $src" >> tcc.
sum
23 for src
in $TESTSUITE_PATH/execute
/*.c
; do
24 echo $TCC $src -o /tmp
/tst
-lm
25 $TCC $src -o /tmp
/tst
-lm >> tcc.fail
2>&1
26 if [ "$?" = "0" ] ; then
28 if /tmp
/tst
>> tcc.fail
2>&1
31 nb_ok
=$
(( $nb_ok + 1 ))
34 nb_exe_failed
=$
(( $nb_exe_failed + 1 ))
38 nb_failed
=$
(( $nb_failed + 1 ))
40 echo "$result: $src" >> tcc.
sum
43 echo "$nb_ok test(s) ok." >> tcc.
sum
44 echo "$nb_ok test(s) ok."
45 echo "$nb_failed test(s) failed." >> tcc.
sum
46 echo "$nb_failed test(s) failed."
47 echo "$nb_exe_failed test(s) exe failed." >> tcc.
sum
48 echo "$nb_exe_failed test(s) exe failed."