Created
April 23, 2014 03:31
-
-
Save hydai/11201983 to your computer and use it in GitHub Desktop.
Archi-project1 test all test case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#single_cycle in current folder | |
#test case is in the path ../../valid_testcase/archiXX | |
for i in {1..9} | |
do | |
if [ -d ../../valid_testcase/archi0${i} ] | |
then | |
sh ./clean.sh | |
cp ../../valid_testcase/archi0${i}/*.bin ./ | |
./single_cycle | |
vimdiff ../../valid_testcase/archi0${i}/error_dump.rpt ./error_dump.rpt +"TOhtml" +"x error0${i}.html" +"qa" | |
vimdiff ../../valid_testcase/archi0${i}/snapshot.rpt ./snapshot.rpt +"TOhtml" +"x snap0${i}.html" +"qa" | |
fi | |
done | |
for (( i = 10; i <= 50; i++ )); do | |
if [ -d ../../valid_testcase/archi${i} ] | |
then | |
sh ./clean.sh | |
cp ../../valid_testcase/archi${i}/*.bin ./ | |
./single_cycle | |
vimdiff ../../valid_testcase/archi${i}/error_dump.rpt ./error_dump.rpt +"TOhtml" +"x error${i}.html" +"qa" | |
vimdiff ../../valid_testcase/archi${i}/snapshot.rpt ./snapshot.rpt +"TOhtml" +"x snap${i}.html" +"qa" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment