projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix :)
[libfirm]
/
ir
/
be
/
test
/
makereport.sh
diff --git
a/ir/be/test/makereport.sh
b/ir/be/test/makereport.sh
index
84a5162
..
c34d25e
100755
(executable)
--- a/
ir/be/test/makereport.sh
+++ b/
ir/be/test/makereport.sh
@@
-1,5
+1,8
@@
-EDG_BIN="edgcpfe"
-EDG_CFLAGS="--c --gnu=30305 -I/usr/lib/gcc-lib/i586-suse-linux/3.3.5/include"
+#!/bin/sh
+
+unset LANG LC_ALL LC_COLLATE
+ECC="eccp"
+ECC_CFLAGS="${ADDCFLAGS} -O3 -c -D__builtin_memcpy=memcpy -D__builtin_memset=memset -D__builtin_strlen=strlen -D__builtin_strcpy=strcpy -D__builtin_strcmp=strcmp -DNO_TRAMPOLINES"
GCC_CFLAGS="-O3 -g -fomit-frame-pointer"
LINKFLAGS="-lm"
TIMEOUT_COMPILE=300
GCC_CFLAGS="-O3 -g -fomit-frame-pointer"
LINKFLAGS="-lm"
TIMEOUT_COMPILE=300
@@
-17,7
+20,7
@@
cat > $XMLRES << __END__
<?xml version="1.0"?>
<results>
<environment>
<?xml version="1.0"?>
<results>
<environment>
- <E
DG_CFLAGS>${EDG_CFLAGS}</EDG
_CFLAGS>
+ <E
CC_CFLAGS>${ECC_CFLAGS}</ECC
_CFLAGS>
<GCC_CFLAGS>${GCC_CFLAGS}</GCC_CFLAGS>
</environment>
__END__
<GCC_CFLAGS>${GCC_CFLAGS}</GCC_CFLAGS>
</environment>
__END__
@@
-27,7
+30,10
@@
__END__
basedir=`pwd`
basedir=`pwd`
-for dir in . gcc-testsuite gcc-testsuite/ieee; do
+DIRS=". gcc-testsuite gcc-testsuite/ieee langshootout"
+test -n "$1" && DIRS="$1"
+
+for dir in $DIRS; do
curdir=$basedir/$dir
echo "<section name=\"$curdir/\">" >> $XMLRES
for file in $curdir/$CFILES; do
curdir=$basedir/$dir
echo "<section name=\"$curdir/\">" >> $XMLRES
for file in $curdir/$CFILES; do
@@
-42,10
+48,10
@@
for file in $curdir/$CFILES; do
res="$OUTPUTDIR/buildresult_$name.txt"
echo "Building $name"
echo "Results for $name" > $res
res="$OUTPUTDIR/buildresult_$name.txt"
echo "Building $name"
echo "Results for $name" > $res
- echo "*** E
DG
/FIRM Compile" >> $res
- CMD="ulimit -t$
TIMEOUT_COMPILE ; ${EDG_BIN} ${EDG
_CFLAGS} $file"
+ echo "*** E
CC
/FIRM Compile" >> $res
+ CMD="ulimit -t$
{TIMEOUT_COMPILE} ; ${ECC} ${ECC
_CFLAGS} $file"
echo "$CMD" >> $res
echo "$CMD" >> $res
- /bin/bash -c "ulimit -t
300 ; ${EDG_BIN} ${EDG
_CFLAGS} $file" >> $res 2>&1 || COMPILE_RES="failed"
+ /bin/bash -c "ulimit -t
${TIMEOUT_COMPILE} ; ${ECC} ${ECC
_CFLAGS} $file" >> $res 2>&1 || COMPILE_RES="failed"
if [ ${COMPILE_RES} == "ok" ]; then
LINK_RES="ok"
if [ ${COMPILE_RES} == "ok" ]; then
LINK_RES="ok"
@@
-53,7
+59,7
@@
for file in $curdir/$CFILES; do
echo "$CMD" >> $res
$CMD >> $res 2>&1
echo "*** Linking" >> $res
echo "$CMD" >> $res
$CMD >> $res 2>&1
echo "*** Linking" >> $res
- CMD="
gcc
build_firm/$name.s ${LINKFLAGS} -o build_firm/$name.exe"
+ CMD="
${ECC}
build_firm/$name.s ${LINKFLAGS} -o build_firm/$name.exe"
echo "$CMD" >> $res
$CMD >> $res 2>&1 || LINK_RES="failed"
fi
echo "$CMD" >> $res
$CMD >> $res 2>&1 || LINK_RES="failed"
fi
@@
-67,18
+73,18
@@
for file in $curdir/$CFILES; do
GCC_RUN_RES="ok"
echo "*** Run GCC" >> $res
GCC_RUN_RES="ok"
echo "*** Run GCC" >> $res
- CMD="build_gcc/$name.exe > $OUTPUTDIR/result_gcc_$name.txt 2>&1"
+ CMD="
ulimit -t${TIMEOUT_RUN} ;
build_gcc/$name.exe > $OUTPUTDIR/result_gcc_$name.txt 2>&1"
echo "$CMD" >> $res
echo "$CMD" >> $res
- /bin/bash -c "ulimit -t$
TIMEOUT_RUN
; build_gcc/$name.exe" > $OUTPUTDIR/result_gcc_$name.txt 2>&1 || GCC_RUN_RES="failed"
+ /bin/bash -c "ulimit -t$
{TIMEOUT_RUN}
; build_gcc/$name.exe" > $OUTPUTDIR/result_gcc_$name.txt 2>&1 || GCC_RUN_RES="failed"
fi
if [ ${LINK_RES} = "ok" ]; then
FIRM_RUN_RES="ok"
echo "*** Run Firm" >> $res
fi
if [ ${LINK_RES} = "ok" ]; then
FIRM_RUN_RES="ok"
echo "*** Run Firm" >> $res
- CMD="build_firm/$name.exe > $OUTPUTDIR/result_gcc_$name.txt 2>&1"
+ CMD="
ulimit -t${TIMEOUT_RUN} ;
build_firm/$name.exe > $OUTPUTDIR/result_gcc_$name.txt 2>&1"
echo "$CMD" >> $res
echo "$CMD" >> $res
- /bin/bash -c "ulimit -t$
TIMEOUT_RUN
; build_firm/$name.exe" > $OUTPUTDIR/result_firm_$name.txt 2>&1 || FIRM_RUN_RES="failed"
+ /bin/bash -c "ulimit -t$
{TIMEOUT_RUN}
; build_firm/$name.exe" > $OUTPUTDIR/result_firm_$name.txt 2>&1 || FIRM_RUN_RES="failed"
fi
if [ ${GCC_RUN_RES} = "ok" -a ${FIRM_RUN_RES} = "ok" ]; then
fi
if [ ${GCC_RUN_RES} = "ok" -a ${FIRM_RUN_RES} = "ok" ]; then