Mercurial > hg > qcc
view gcctestsuite.sh @ 590:18ffc34ebf5d
Replace old "DEBUG=echo" with "VERBOSE=1", which shows the command lines
(properly escaped so you can cut and paste to re-run them) while also executing
each one. For the old "just show the commands, don't execute them" use
"VERBOSE=debug".
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 06 Apr 2008 17:02:18 -0500 |
parents | 18347d6348fc |
children |
line wrap: on
line source
#!/bin/sh TESTSUITE_PATH=$HOME/gcc/gcc-3.2/gcc/testsuite/gcc.c-torture TCC="./tcc -B. -I. -DNO_TRAMPOLINES" rm -f tcc.sum tcc.log nb_failed="0" for src in $TESTSUITE_PATH/compile/*.c ; do echo $TCC -o /tmp/test.o -c $src $TCC -o /tmp/test.o -c $src >> tcc.log 2>&1 if [ "$?" == "0" ] ; then result="PASS" else result="FAIL" nb_failed=$[ $nb_failed + 1 ] fi echo "$result: $src" >> tcc.sum done for src in $TESTSUITE_PATH/execute/*.c ; do echo $TCC $src $TCC $src >> tcc.log 2>&1 if [ "$?" == "0" ] ; then result="PASS" else result="FAIL" nb_failed=$[ $nb_failed + 1 ] fi echo "$result: $src" >> tcc.sum done echo "$nb_failed test(s) failed." >> tcc.sum echo "$nb_failed test(s) failed."