3 #TESTCASES=( testcase1 testcase2 testcase3 testcase4 testcase5 )
4 TESTCASES=( testcase1 )
6 BENCH=chase-lev-deque-bugfix
8 for((i=0;i<${#TESTCASES[@]};i++))
10 #echo "$i: ${TESTCASES[$i]}"
13 output=result$(($i+1)).txt
19 sh run.sh $BENCH/${TESTCASES[$i]}_wildcard -m2 -y -u3 -tSCFENCE &> tmp.txt
21 sh run.sh $BENCH/${TESTCASES[$i]}_wildcard -m2 -y -u3 -tSCFENCE -o f$input &> tmp.txt
24 firstLine=`grep "Result 0" tmp.txt -n | tail -n 1 | sed -n 's/^\([0-9]*\)[:].*/\1/p'`
25 lastLine=`grep "wildcard" tmp.txt -n | tail -n 1 | sed -n 's/^\([0-9]*\)[:].*/\1/p'`
26 head tmp.txt -n "$lastLine" | tail -n +"$firstLine" &> $output