3 ###############################################################################
6 # Author : Chris Koeritz #
7 # Rights : Copyright (C) 1991-$now by Author #
11 # Executes the programs in the current directory and combines their #
12 # outputs into one stream. #
14 ###############################################################################
15 # This program is free software; you can redistribute it and/or modify it #
16 # under the terms of the GNU General Public License as published by the Free #
17 # Software Foundation; either version 2 of the License or (at your option) #
18 # any later version. See: "http://www.gruntose.com/Info/GNU/GPL.html" for a #
19 # version of the License. Please send any updates to "fred@gruntose.com". #
20 ###############################################################################
22 require "importenv.pl";
28 #print "starting in directory $run_dir\n";
30 # float across the executables in this directory.
32 foreach $i ( `find $run_dir -type f -perm +111` ) { &run_it($i); }
34 foreach $i ( `find $run_dir -iname "*.exe"` ) { &run_it($i); }
37 # the run_it function does the real work of writing out the log and executing
38 # the programs of interest.
41 local($program_name) = @_;
42 chop $program_name; # take off EOL.
44 #printf "program name is $program_name\n";
46 if ($program_name =~ /\.log$/) { return; }
47 print stderr "starting $program_name.\n";
50 print "---- starting $program_name ----\n";
51 # run the program now...
52 if ( ($OS eq "Windows_NT") || ($OS eq "Windows_95") ) {
53 # don't use nice when it doesn't exist.
54 system($program_name);
56 system("nice -4 " . $program_name);
58 # added nice in since some tests are brutal.
59 print "---- $program_name is done ----\n";
62 print stderr "ending $program_name.\n";