root/branches/newmole/scripts/promote_last_good_slow.pl

Revision 324, 1.1 kB (checked in by gary, 3 years ago)

move master source to cumulus

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!perl -w
2
3# this script is called by autorun.pl after a clean execution of the test suite,
4# it copies the contents of the "last" ftp dir to the "last_good" dir
5# and also copies the cloudy.exe to cloudy_last_good.exe
6
7# bring in the perl module that includes copy
8use File::Copy;
9
10
11# the disk drive
12$c = "M";
13
14# try using net use net use u: \\server-name\share-name\
15system( "net use $c: \\\\cumulus\\nimbus_c\$ /persistent:no" );
16
17
18# --------------------------------------------------------------------------
19# this block - set up paths to all targets on various machines
20
21# this is where the original test suite files live on my pc
22$original_tsuite_dir = "$c:/projects/cloudy/trunk/tsuite/slow";
23
24# move to pc unix source dir
25chdir( "$original_tsuite_dir" ) or die " could not move to test suite directory \n";
26
27system( "ls" );
28
29# now copy cloudy.exe to cloudy_last_good.exe
30copy( "trunk.exe" , "cloudy_last_good.exe" ) or die "cannot copy cloudy.exe to last good\n";
31
32# now copy all output files to lg files
33while(defined($output= glob("*.out")) )
34{
35       # get basename
36       $output =~ s/.out//gi;
37       copy( "$output".".out" , "$output".".lg" );
38}
Note: See TracBrowser for help on using the browser.