diff options
author | Michalis Pardalos <m.pardalos@gmail.com> | 2021-02-23 11:34:06 +0000 |
---|---|---|
committer | Michalis Pardalos <m.pardalos@gmail.com> | 2021-02-23 11:34:06 +0000 |
commit | 7e7a105fb5d54e9265405aea15251a3889e53f4d (patch) | |
tree | cca9a3bdd4facaec1b0db4103e6358d5bef7f846 | |
parent | 9b50c163a557f0fed641e7ccbe3dd727fe8b44c9 (diff) | |
download | vericert-7e7a105fb5d54e9265405aea15251a3889e53f4d.tar.gz vericert-7e7a105fb5d54e9265405aea15251a3889e53f4d.zip |
Polybench - don't print PASS if test has failed
-rwxr-xr-x | benchmarks/polybench-syn/run-vericert.sh | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/benchmarks/polybench-syn/run-vericert.sh b/benchmarks/polybench-syn/run-vericert.sh index aa62a67..b74b581 100755 --- a/benchmarks/polybench-syn/run-vericert.sh +++ b/benchmarks/polybench-syn/run-vericert.sh @@ -15,28 +15,18 @@ while read benchmark ; do cycles=$(tail -4 $benchmark.tmp | head -1 | tr -s ' ' | cut -d' ' -f3) ctime=$(cat $benchmark.comp | head -2 | tail -1 | xargs | cut -d' ' -f2 | cut -d'm' -f2 | sed 's/s//g') echo "Veri output: "$veriresult - - #Undefined checks - if test -z $veriresult - then - echo "FAIL: Verilog returned nothing" - #exit 0 - fi - - # Don't care checks - if [ $veriresult == "x" ] - then - echo "FAIL: Verilog returned don't cares" - #exit 0 - fi - - # unequal result check - if [ $cresult -ne $veriresult ] - then - echo "FAIL: Verilog and C output do not match!" - #exit 0 - else - echo "PASS" + + if [ -z $veriresult ]; then + #Undefined + echo "FAIL: Verilog returned nothing" + elif [ $veriresult == "x" ]; then + # Don't care + echo "FAIL: Verilog returned don't cares" + elif [ $cresult -ne $veriresult ]; then + # unequal result + echo "FAIL: Verilog and C output do not match!" + else + echo "PASS" fi name=$(echo $benchmark | awk -v FS="/" '{print $NF}') echo $name","$cycles","$ctime >> exec.csv |