source: EcnlProtoTool/trunk/tcc-0.9.26/tests/gcctestsuite.sh@ 279

Last change on this file since 279 was 279, checked in by coas-nagasima, 7 years ago

ファイルを追加、更新。

File size: 752 bytes
Line 
1#!/bin/sh
2
3TESTSUITE_PATH=$HOME/gcc/gcc-3.2/gcc/testsuite/gcc.c-torture
4TCC="./tcc -B. -I. -DNO_TRAMPOLINES"
5rm -f tcc.sum tcc.log
6nb_failed="0"
7
8for 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
12 result="PASS"
13 else
14 result="FAIL"
15 nb_failed=$(( $nb_failed + 1 ))
16 fi
17 echo "$result: $src" >> tcc.sum
18done
19
20for src in $TESTSUITE_PATH/execute/*.c ; do
21 echo $TCC $src
22 $TCC $src >> tcc.log 2>&1
23 if [ "$?" = "0" ] ; then
24 result="PASS"
25 else
26 result="FAIL"
27 nb_failed=$(( $nb_failed + 1 ))
28 fi
29 echo "$result: $src" >> tcc.sum
30done
31
32echo "$nb_failed test(s) failed." >> tcc.sum
33echo "$nb_failed test(s) failed."
Note: See TracBrowser for help on using the repository browser.