Rev | Line | |
---|
[718] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | function runtest () # prefix, prog, args |
---|
| 4 | { |
---|
| 5 | echo $1 1>&2 |
---|
[723] | 6 | for ((i=1;i<5;i++)) |
---|
| 7 | do |
---|
| 8 | $2 $3 $4 $5 $6 $7 $8 $9; |
---|
| 9 | done | |
---|
| 10 | awk '{print "'$1'",$0}' |
---|
[718] | 11 | } |
---|
| 12 | |
---|
| 13 | function runalltest() #postfix, CXX, CXXFLAGS |
---|
| 14 | { |
---|
| 15 | echo $1 1>&2 |
---|
| 16 | make clean >/dev/null |
---|
| 17 | make CXX="$2" CXXFLAGS="$3" >/dev/null |
---|
| 18 | { |
---|
| 19 | runtest HCUBE19 hcube 19 |
---|
| 20 | runtest GRBENCH graph-bench |
---|
| 21 | } | awk "{print \$0, \"$1\"}" |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | runalltest "gcc-3.3 -O2" g++ "-O2" |
---|
| 25 | runalltest "gcc-3.3 -O2-march=pentium-m" g++ "-O2 -march=pentium-m" |
---|
| 26 | runalltest "gcc-3.3 -O3" g++ "-O3" |
---|
| 27 | runalltest "gcc-3.3 -O3-march=pentium-m" g++ "-O3 -march=pentium-m" |
---|
| 28 | |
---|
| 29 | runalltest "gcc-3.4 -O2" g++-3.4 "-O2" |
---|
| 30 | runalltest "gcc-3.4 -O2-march=pentium-m" g++-3.4 "-O2 -march=pentium-m" |
---|
| 31 | runalltest "gcc-3.4 -O3" g++-3.4 "-O3" |
---|
| 32 | runalltest "gcc-3.4 -O3-march=pentium-m" g++-3.4 "-O3 -march=pentium-m" |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.