root/trunk/tsuite/crash/runall.pl

Revision 1704, 1.1 kB (checked in by gary, 13 months ago)

add crash directory series of sims that test abort modes

lines_service.cpp - add informational lines to emergent output

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!perl -w
2# the above is generic form of #! for perl, with warnings
3 
4# of the cloudy executable on your system
5
6# various VS execs
7#$exe = "c:/Projects/Cloudy/trunk/debug/trunk.exe";
8#$exe = "c:/projects/Cloudy/trunk/release/trunk.exe";
9
10#$exe = "c:/Projects/Cloudy/trunk/vs08/debug/vs08.exe";
11$exe = "c:/projects/cloudy/trunk/vs08/release/vs08.exe";
12
13# icc
14#$exe = "c:/projects/cloudy/trunk/icl/release/cloudy_icl.exe";
15
16$nMod = 0;
17$nSkip = 0;
18
19# this loops over all the *.in files in the current directory
20# and runs the code to produce *.out files
21while ( defined( $input = glob("*.in") ) )
22{
23        if ( $nMod>=$nSkip )
24        {
25                # $output =~ s/.out//gi;
26                # $output =~ s/.out//gi;
27                print( "$input going to " );
28                $output = $input;
29                $output =~ s/\.in//gi;
30                if( -e "$output".".out" )
31                {
32                        rename( "$output".".out" , "$output".".bak" );
33                }
34                $out = "$output".".out";
35                print("$output\n");
36                # actually execute the code
37#               system "nice -n 5 $exe < $input  > $out";
38                system "$exe < $input  > $out";
39        }
40        ++$nMod;
41}
42
43printf( "\n %i models were computed, and %i were skipped.\n ",$nMod,$nSkip);
Note: See TracBrowser for help on using the browser.