From 6ca3ec15412af481cbd3527538eeb72755a3653c Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 7 Jul 2009 11:12:51 -0400 Subject: [PATCH] tests: remove old bin before compiling Signed-off-by: Jean Privat --- tests/tests.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/tests.sh b/tests/tests.sh index 94d85c4..147e8cc 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -86,20 +86,19 @@ for ii in "$@"; do echo -n "=> $i: " - rm "$ff.res" "$ff.err" "$ff.write" 2> /dev/null + rm "$ff.res" "$ff.err" "$ff.write" "$ff.bin" 2> /dev/null # Compile if [ "x$verbose" = "xtrue" ]; then echo "" - echo $NITC $OPT -o "$f.bin" "$i" -I . -I alt -I ../lib/standard + echo $NITC $OPT -o "$ff.bin" "$i" -I . -I alt -I ../lib/standard fi - $NITC $OPT -o "$f.bin" "$i" -I . -I alt -I ../lib/standard 2> "$ff.cmp.err" > "$ff.compile.log" + $NITC $OPT -o "$ff.bin" "$i" -I . -I alt -I ../lib/standard 2> "$ff.cmp.err" > "$ff.compile.log" ERR=$? if [ "x$verbose" = "xtrue" ]; then cat "$ff.compile.log" cat >&2 "$ff.cmp.err" fi - mv "$f.bin" "$ff.bin" 2> /dev/null egrep '^[A-Z0-9_]*$' "$ff.compile.log" > "$ff.res" if [ "$ERR" != 0 ]; then echo -n "! " -- 1.7.9.5