Changeset 2049 for trunk/tsuite

Show
Ignore:
Timestamp:
05/12/08 13:27:20 (8 months ago)
Author:
rjrw
Message:

Fix runall.pl to use command line argument to specify non-default
executable subdirectory.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tsuite/auto/runall.pl

    r2048 r2049  
    77# of Cloudy. 
    88 
     9# This can be done using an argument to runall.pl.  To test the build in source 
     10# 
     11# runall.pl 
     12# 
     13# To test the build in the sys_XXX subdirectory of source 
     14# 
     15# runall.pl sys_XXX 
     16 
    917# after all the models are run the "checkall.pl" script can be run 
    1018# to check that everything went ok 
     
    1422# original download and if the executable was built in source 
    1523# using g++ and the makefiles provided 
    16 $exe = "../../source/cloudy.exe"; 
     24$exe = '../../source/'.$ARGV[0].'/cloudy.exe'; 
    1725 
    1826# these are the various compiler builds that occur in sys_XXX 
     
    2129# 
    2230# sys_gcc 
    23 $exe = "../../source/sys_gcc/cloudy.exe"; 
     31# $exe = "../../source/sys_gcc/cloudy.exe"; 
    2432# $exe = "../../source/sys_gprof/cloudy.exe"; 
    2533# $exe = "../../source/sys_IBMxSeries/cloudy.exe"; 
     
    3139if( ! -e "$exe" ) 
    3240{ 
    33         print "The executable file does not exist\n"; 
    34         exit; 
     41        die "The executable file $exe does not exist\n"; 
    3542} 
    3643