Test runner: bug-fixes and updates

This commit is contained in:
Adrien Guatto 2010-07-16 11:19:56 +02:00
parent 03f21cc612
commit b5ba524c3e

View file

@ -32,7 +32,7 @@ for d in good bad; do
done done
compile () { compile () {
arg_comp="" args_comp=""
assert_node=$(eval grep CHECK $1 | awk '{ print $3 }') assert_node=$(eval grep CHECK $1 | awk '{ print $3 }')
@ -94,7 +94,7 @@ launch_check () {
fi fi
# Compil. minils ? # Compil. minils ?
if [[ ($echec == 0) && ($minils == 1) ]]; then if [[ ($echec == 0) && ($minils == 1) ]]; then
if $MLC good/${base_f}.mls > /dev/null 2>&1; then if $MLC ${base_f}.mls > /dev/null 2>&1; then
echec=0 echec=0
else else
echec=2 echec=2
@ -102,7 +102,7 @@ launch_check () {
fi fi
# Compil. java ? # Compil. java ?
if [[ ($echec == 0) && ($java == 1) ]]; then if [[ ($echec == 0) && ($java == 1) ]]; then
pushd "good/${base_f}" > /dev/null pushd "${base_f}" > /dev/null
for java_file in *.java ; do for java_file in *.java ; do
if $JAVAC -warn:-unused -sourcepath .:..:../t1 ${java_file} > /dev/null if $JAVAC -warn:-unused -sourcepath .:..:../t1 ${java_file} > /dev/null
then then
@ -115,7 +115,7 @@ launch_check () {
fi fi
# Compil. c ? # Compil. c ?
if [[ ($echec == 0) && ($c == 1) ]]; then if [[ ($echec == 0) && ($c == 1) ]]; then
pushd good/${base_f}_c >/dev/null pushd ${base_f}_c >/dev/null
for cf in *.c; do for cf in *.c; do
if $CC -c $cf >/dev/null 2>&1; then if $CC -c $cf >/dev/null 2>&1; then
echec=$echec echec=$echec