root/guts.sh
| Revision 171 (checked in by apokayi, 10 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | # GWU-HPCL Unified Testing Suite (GUTS) |
| 4 | # Script by Abdullah Kayi |
| 5 | |
| 6 | SUITE=$1 |
| 7 | |
| 8 | # check for the number of arguments |
| 9 | |
| 10 | if [ $# -gt 3 -o $# -lt 2 ]; then |
| 11 | echo "Usage: ./guts.sh [SUITE] [#of threads] [CLASS --> used only for running guts_npb]" |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | # check the SUITE name and run the specific test bench accordingly |
| 16 | |
| 17 | if [ "$SUITE" = "IO" ] ; then |
| 18 | #Run the UPC/IO test bench |
| 19 | cd guts_io |
| 20 | ./guts_io.sh $2 |
| 21 | elif [ "$SUITE" = "MAIN" ]; then |
| 22 | #Run the UPC Compiler Main test bench |
| 23 | # to turn on sytax coloring use [ON] as third argument |
| 24 | cd guts_main |
| 25 | ./guts_main.sh $2 $3 |
| 26 | elif [ "$SUITE" = "COLLECTIVES" ]; then |
| 27 | #Run the UPC/Collectives Main test bench |
| 28 | cd guts_collectives |
| 29 | ./guts_collectives.sh $2 |
| 30 | elif [ "$SUITE" = "NPB" ]; then |
| 31 | #Run the UPC Compiler Stress test bench |
| 32 | cd guts_npb |
| 33 | ./guts_npb.sh $2 $3 |
| 34 | else |
| 35 | echo "Usage: available SUITEs IO, MAIN, COLLECTIVES, NPB" |
| 36 | echo "Usage: ./guts.sh [SUITE] [#of threads] [CLASS --> used only for running guts_npb]" |
| 37 | exit 1 |
| 38 | fi |
Note: See TracBrowser for help on using the browser.
