From 7058ca1aaf1cbf7f494dad5d7412530a13125332 Mon Sep 17 00:00:00 2001 From: Andreas Wendleder Date: Fri, 8 Jul 2011 17:01:28 +0200 Subject: [PATCH] Script fixes. Indent correctly, don't nag about nonexisting files and add a carriage return. --- run_tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index f329fae8..78281285 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -44,7 +44,7 @@ if [[ "$1" > 0 ]]; then echo fi fi - /bin/rm $bc + /bin/rm -f $bc done else echo Running all correctness tests @@ -52,7 +52,7 @@ else for i in tests/*.ispc; do if $verbose; then echo -en "Running test $counter of $number.\r" - fi + fi (( counter++ )) bc=${i%%ispc}bc ispc -O2 $i -woff -o $bc --emit-llvm --target=$target @@ -68,10 +68,10 @@ else echo fi fi - /bin/rm $bc + /bin/rm -f $bc done - echo Running failing tests + echo -e "\nRunning failing tests" for i in failing_tests/*.ispc; do (ispc -O2 $i -woff -o - --emit-llvm | ispc_test -) 2>/dev/null 1>/dev/null if [[ $? == 0 ]]; then