view gcctestsuite.sh @ 469:bb13836ab658

Patch from Vincent Pit to fix visibility problems in the linker (resulting in error "/usr/lib/libc_nonshared.a: '__i686.get_pc_thunk.bx' defined twice"). Unfortunately, this patch results in strip complaining "no group info for section .text.__i686.get_pc_thunk.bx", but it's progress.
author Rob Landley <rob@landley.net>
date Tue, 04 Sep 2007 23:51:37 -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."