Mercurial > hg > tinycc
changeset 292:18347d6348fc
[project @ 2003-10-05 09:48:53 by bellard]
update
author | bellard |
---|---|
date | Sun, 05 Oct 2003 09:48:53 +0000 |
parents | 607339386741 |
children | 84b15704e309 |
files | VERSION gcctestsuite.sh |
diffstat | 2 files changed, 34 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/VERSION Sat Oct 04 21:29:04 2003 +0000 +++ b/VERSION Sun Oct 05 09:48:53 2003 +0000 @@ -1,1 +1,1 @@ -0.9.19 \ No newline at end of file +0.9.20 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcctestsuite.sh Sun Oct 05 09:48:53 2003 +0000 @@ -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."