gcctestsuite.sh

来自「小而快的c编译器」· Shell 代码 · 共 34 行

SH
34
字号
#!/bin/shTESTSUITE_PATH=$HOME/gcc/gcc-3.2/gcc/testsuite/gcc.c-tortureTCC="./tcc -B. -I. -DNO_TRAMPOLINES" rm -f tcc.sum tcc.lognb_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.sumdonefor 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.sumdoneecho "$nb_failed test(s) failed." >> tcc.sumecho "$nb_failed test(s) failed."

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?