3 TESTSUITE_PATH
=$HOME/gcc
/gcc-3.2
/gcc
/testsuite
/gcc.c-torture
4 TCC
="./tcc -B. -I. -DNO_TRAMPOLINES"
8 for src
in $TESTSUITE_PATH/compile
/*.c
; do
9 echo $TCC -o /tmp
/test.o
-c $src
10 $TCC -o /tmp
/test.o
-c $src >> tcc.log
2>&1
11 if [ "$?" == "0" ] ; then
15 nb_failed
=$
[ $nb_failed + 1 ]
17 echo "$result: $src" >> tcc.
sum
20 for src
in $TESTSUITE_PATH/execute
/*.c
; do
22 $TCC $src >> tcc.log
2>&1
23 if [ "$?" == "0" ] ; then
27 nb_failed
=$
[ $nb_failed + 1 ]
29 echo "$result: $src" >> tcc.
sum
32 echo "$nb_failed test(s) failed." >> tcc.
sum
33 echo "$nb_failed test(s) failed."