diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-12-15 18:56:09 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-12-15 18:56:09 +0000 |
commit | bb98ac0816b9558d489efbdf87833dbbbbb75b80 (patch) | |
tree | 92820488b005c2fc6ac48ed61f25fc25158e3a5a /bin/auto_run_tests.pl | |
parent | 1176b165edd0bd25d5ef1b85b55c864cdb2228d1 (diff) | |
download | ATCD-bb98ac0816b9558d489efbdf87833dbbbbb75b80.tar.gz |
ChangeLogTag:Fri Dec 15 10:22:42 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'bin/auto_run_tests.pl')
-rwxr-xr-x | bin/auto_run_tests.pl | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/bin/auto_run_tests.pl b/bin/auto_run_tests.pl index 6388dfeb6c8..f0823873127 100755 --- a/bin/auto_run_tests.pl +++ b/bin/auto_run_tests.pl @@ -7,24 +7,21 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' # This file is for running the run_test.pl scripts listed in # auto_run_tests.lst. -if (!($ACE_ROOT = $ENV{ACE_ROOT})) { - my $cd = getcwd (); - chdir ('..'); - $ACE_ROOT = getcwd ().$DIR_SEPARATOR; - chdir ($cd); - warn "ACE_ROOT not defined, defaulting to ACE_ROOT=$ACE_ROOT"; -} - -unshift @INC, "$ACE_ROOT/bin"; -require PerlACE::Run_Test; -require PerlACE::ConfigList; +use lib "$ENV{ACE_ROOT}/bin"; +use PerlACE::Run_Test; use English; use Getopt::Std; use Cwd; +$ACE_ROOT = $ENV{ACE_ROOT}; + ################################################################################ +$config_list = new PerlACE::ConfigList; + +$config_list->load ($ACE_ROOT."/bin/auto_run_tests.lst"); + if (!getopts ('ac:ds:t') || $opt_h) { print "run_test.pl [-a] [-c config] [-h] [-s sandbox] [-t]\n"; print "\n"; @@ -37,19 +34,10 @@ if (!getopts ('ac:ds:t') || $opt_h) { print " -s sandbox Runs each program using a sandbox program\n"; print " -t TAO tests only\n"; print "\n"; - print "Configs: MSVC\n"; + print "Configs: " . $config_list->list_configs () . "\n"; exit (1); } -$config_list = new PerlACE::ConfigList; - -$config_list->load ($ACE_ROOT."/bin/auto_run_tests.lst"); - -if ($#CONFIGS < 0) { - print "Warning: No configurations selected, defaulting to none.\n"; - print " Possible Configs: ", $config_list->list_configs (), "\n"; -} - foreach $test ($config_list->valid_entries ()) { my $directory = "."; my $program = "."; @@ -80,9 +68,9 @@ foreach $test ($config_list->valid_entries ()) { } ### Genrate the -ExeSubDir and -Config options - my $inherited_options = " -ExeSubDir $EXEPREFIX "; + my $inherited_options = " -ExeSubDir $PerlACE::Process::ExeSubDir "; - foreach my $config (@CONFIGS) { + foreach my $config ($config_list->my_config_list ()) { $inherited_options .= " -Config $config "; } |