diff options
| author | grischka <grischka> | 2009-04-18 14:28:45 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:03 +0200 |
| commit | ea5e81bd6a3376232bf4747b2fa2e0a91c19b337 (patch) | |
| tree | f88b43a25996cd7f4b9c32aac70fdd33e3f4dc2c /tests/gcctestsuite.sh | |
| parent | e8a52a824957808410a8eb13d4b5e2f3e1776553 (diff) | |
| download | tinycc-ea5e81bd6a3376232bf4747b2fa2e0a91c19b337.tar.gz tinycc-ea5e81bd6a3376232bf4747b2fa2e0a91c19b337.tar.bz2 | |
new subdirs: include, lib, tests
Diffstat (limited to 'tests/gcctestsuite.sh')
| -rw-r--r-- | tests/gcctestsuite.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/gcctestsuite.sh b/tests/gcctestsuite.sh new file mode 100644 index 0000000..bd9204b --- /dev/null +++ b/tests/gcctestsuite.sh @@ -0,0 +1,33 @@ +#!/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." |
