Fixing runbench script
authorHamed Gorjiara <hgorjiar@uci.edu>
Fri, 18 Oct 2019 04:10:40 +0000 (21:10 -0700)
committerHamed Gorjiara <hgorjiar@uci.edu>
Fri, 18 Oct 2019 04:10:40 +0000 (21:10 -0700)
src/Scripts/runbench.sh

index ed66315..9affb0b 100755 (executable)
@@ -4,6 +4,7 @@
 # ./runbench.sh [nqueens] [timeout] [tuner.conf]
 # ./runbench.sh [sudoku-csolver] [timeout] [tuner.conf]
 # ./runbench.sh [killerSudoku] [timeout] [tuner.conf]
+set -e
 
 if [ "$#" -lt 3 ]; then
         echo "Illegal number of argument"
@@ -17,8 +18,8 @@ DUMP=$(find . -name "*.dump")
 cd $BIN
 for d in $DUMP; do
        if [[ $d = *$1* ]]; then
-               echo $d
-               ./run.sh tunerrun "."$d $2 "../"$3 out.out
+               echo "Running: ./run.sh tunerrun "."$d $2 $3 out.out"
+               ./run.sh tunerrun "."$d $2 $3 out.out
                echo "Best tuner"
        fi
 done