main
test-branch
| Line | |
|---|
| 1 | #!/usr/bin/perl
|
|---|
| 2 | use Path::Class;
|
|---|
| 3 | use File::Basename;
|
|---|
| 4 | use autodie;
|
|---|
| 5 | use strict;
|
|---|
| 6 | use warnings;
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | my $civlDir=".";
|
|---|
| 10 |
|
|---|
| 11 | my $numArgs = scalar(@ARGV);
|
|---|
| 12 |
|
|---|
| 13 | if($numArgs > 1){
|
|---|
| 14 | warn "At most ONE argument is needed for this script. Additional arguments will be ignored.\n";
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | if($numArgs > 0){
|
|---|
| 18 | $civlDir=$ARGV[0];
|
|---|
| 19 | }else{
|
|---|
| 20 | warn "No civl directory is provided, the current directory will be used as the civl directory.\n"
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | my $benchPrefix="edu.udel.cis.vsl.civl.bench.";
|
|---|
| 24 | my $benchSuffix="Benchmark";
|
|---|
| 25 | my @benchmarks=($benchPrefix."Adder".$benchSuffix,
|
|---|
| 26 | $benchPrefix."Barrier".$benchSuffix,
|
|---|
| 27 | $benchPrefix."BlockAdder".$benchSuffix,
|
|---|
| 28 | $benchPrefix."DiningPhilosopher".$benchSuffix,
|
|---|
| 29 | $benchPrefix."MessagePassing".$benchSuffix);
|
|---|
| 30 | my $cmdStart="java -classpath $civlDir/civl.jar:$civlDir/bin ";
|
|---|
| 31 |
|
|---|
| 32 | foreach my $benchmark (@benchmarks){
|
|---|
| 33 | my $result = `$cmdStart $benchmark $civlDir`;
|
|---|
| 34 | print $result;
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.