When running the tests, remember that exeext is appended to the binary name
authorIan Lynagh <igloo@earth.li>
Sat, 21 Jul 2007 22:47:25 +0000 (22:47 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 21 Jul 2007 22:47:25 +0000 (22:47 +0000)
tests/all.T
tests/hpcrun.pl

index 451f649..a23f5d5 100644 (file)
@@ -4,4 +4,4 @@ setTestOpts(compose(only_compiler_types(['ghc']),
 # Set up the hpc common variable(s).
 hpc = config.top + '/../utils/hpc/hpc';
 
-test('hpc001', normal, compile_and_run_with_prefix, ['perl hpcrun.pl --hpc=' + hpc,'-fhpc'])
+test('hpc001', normal, compile_and_run_with_prefix, ['perl hpcrun.pl --exeext=' + config.exeext + ' --hpc=' + hpc,'-fhpc'])
index 61784e4..2b9cdb5 100644 (file)
@@ -11,12 +11,16 @@ while($ARGV[0] =~ /^--/) {
     shift @ARGV;
     $REPORT = 1;       
   }
+  if ($ARGV[0] =~ /--exeext=(.*)/) {
+    shift @ARGV;
+    $exeext = $1;       
+  }
 }
 
 
 die "no option --hpc=* provided\n" if (!defined($HPC));
         
-$binary = $ARGV[0];
+$binary = $ARGV[0] . $exeext;
 
 system(@ARGV);
 print "\n\n";