summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-09-26 17:10:45 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-09-26 17:10:45 +0000
commit8a549c98cf5c4db3904be8014360614fdc838681 (patch)
tree9487b8f45c6975115a4056f0561a2a2350b54692 /bin
parent3d8503effc4afe954ee46272d2b7958c10a8db6a (diff)
downloadATCD-8a549c98cf5c4db3904be8014360614fdc838681.tar.gz
ChangeLogTag:Tue Sep 26 10:09:32 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/auto_compile92
-rw-r--r--bin/auto_run_tests.lst13
-rw-r--r--bin/run_all_list.pm11
3 files changed, 77 insertions, 39 deletions
diff --git a/bin/auto_compile b/bin/auto_compile
index d29010e8039..daef7982586 100755
--- a/bin/auto_compile
+++ b/bin/auto_compile
@@ -38,10 +38,6 @@ $MODULE='ACE_wrappers';
# Find out the command name.
$CMD = basename($0);
-$single_threaded = 0;
-$minimum_corba = 0;
-$ami = 0;
-$smart_proxies = 0;
$dont_update = 0;
$dont_run = 0;
$pre_realclean = 0;
@@ -49,6 +45,7 @@ $post_realclean = 0;
$report_success = 0;
$debug = 0;
@BUILD_LIST= ();
+@CONFIGURATION_OPTIONS = ();
@ARGS = ();
while ($#ARGV >= 0) {
@@ -56,16 +53,33 @@ while ($#ARGV >= 0) {
push @ARGS, $ARGV[0];
shift;
} elsif ($ARGV[0] eq "-single_threaded") {
- $single_threaded = 1;
+ print STDERR "$CMD: obsolete option $ARGV[0], "
+ ."please use -config instead\n";
+ push @CONFIGURATION_OPTIONS, 'ST';
shift;
} elsif ($ARGV[0] eq "-minimum_corba") {
- $minimum_corba = 1;
+ print STDERR "$CMD: obsolete option $ARGV[0], "
+ ."please use -config instead\n";
+ push @CONFIGURATION_OPTIONS, 'MINIMUM';
shift;
} elsif ($ARGV[0] eq "-ami") {
- $ami =1;
+ print STDERR "$CMD: obsolete option $ARGV[0], "
+ ."please use -config instead\n";
+ push @CONFIGURATION_OPTIONS, 'AMI';
shift;
} elsif ($ARGV[0] eq "-smart_proxies") {
- $smart_proxies = 1;
+ print STDERR "$CMD: obsolete option $ARGV[0], "
+ ."please use -config instead\n";
+ push @CONFIGURATION_OPTIONS, 'SMART_PROXIES';
+ shift;
+ } elsif ($ARGV[0] eq "-static") {
+ print STDERR "$CMD: obsolete option $ARGV[0], "
+ ."please use -config instead\n";
+ push @CONFIGURATION_OPTIONS, 'STATIC';
+ shift;
+ } elsif ($ARGV[0] eq "-config") {
+ shift;
+ push @CONFIGURATION_OPTIONS, $ARGV[0];
shift;
} elsif ($ARGV[0] eq "-build_list") {
shift;
@@ -129,10 +143,10 @@ if ($debug) {
print "MAIL = $MAIL\n";
print "ACE_ROOT = $ENV{ACE_ROOT}\n";
print "TAO_ROOT = $ENV{TAO_ROOT}\n";
+ print "CONFIGURATION_OPTIONS = ", @CONFIGURATION_OPTIONS, "\n";
}
push @INC, $CHECKOUT . '/' . $MODULE . '/bin';
-require run_all_list;
if ($#BUILD_LIST == -1) {
@BUILD_LIST=
@@ -142,19 +156,41 @@ if ($#BUILD_LIST == -1) {
'apps/gperf',
'TAO');
}
+
+sub mydie {
+ unlink $disable_file;
+ die $_ . "\n";
+}
+
+@RUN_LIST = ();
+
if ($debug) {
@BUILD_LIST = ('ace');
- @RUN_LIST = ('TAO/tests/OctetSeq , run_test.pl');
- @SINGLE_THREADED_LIST = ('TAO/tests/OctetSeq , run_test.pl');
- @MINIMUM_CORBA_LIST = ('TAO/tests/OctetSeq , run_test.pl');
+ @RUN_LIST = ('TAO/tests/OctetSeq/run_test.pl');
$ADMIN = $ENV{'LOGNAME'};
-}
+} else {
+ my $line;
+ open (LIST, "<".$CHECKOUT . '/' . $MODULE . '/bin/auto_run_tests.lst')
+ || mydie "Cannot open auto_run_tests list\n";
-sub mydie {
- unlink $disable_file;
- die $_ . "\n";
+ LIST_ELEMENT: while (<LIST>) {
+ # ignore comments and blank lines
+ next if (/^\#/ || /^\s*$/);
+
+ chomp;
+ my @stuff = split ":";
+
+ foreach my $config (@CONFIGURATION_OPTIONS) {
+ if (/$config/) {
+ next LIST_ELEMENT;
+ }
+ }
+ my $program = shift @stuff;
+ $program =~ s/\s*//g; #remove any extra whitepace
+ push @RUN_LIST, $program;
+ }
}
sub report_errors {
@@ -213,7 +249,7 @@ if (-f $disable_file) {
}
open (DISABLE, '>' . $disable_file)
- || die "cannot open disable file";
+ || die "cannot open disable file <$disable_file>\n";
print DISABLE "auto_compile <$date> is running\n";
close (DISABLE)
|| die "cannot close disable file";
@@ -375,22 +411,18 @@ foreach $i (@BUILD_LIST) {
print LOG "#################### Tests\n";
if ($dont_run == 0) {
- @LIST = @RUN_LIST;
- if ($single_threaded) {
- @LIST = @SINGLE_THREADED_LIST;
- } elsif ($minimum_corba) {
- @LIST = @MINIMUM_CORBA_LIST;
- } elsif ($ami) {
- @LIST = @AMI_CORBA_LIST;
- }
+ foreach my $i (@RUN_LIST) {
- foreach $i (@LIST) {
- local @test_info = split (/\ \,\ /, $i);
- local $directory = $test_info[0];
- local $program = $test_info[1];
+ local $directory = '.';
+ local $program = $i;
+
+ if ($i =~ /(.*)\/([^\/]*)$/) {
+ $directory = $1;
+ $program = $2;
+ }
$date = localtime;
- print LOG "$CMD: =============================================\n";
+ print LOG "\n\n$CMD: =============================================\n";
print LOG "$CMD: running $program in $directory at ", $date, "\n";
local $subdir =
$CHECKOUT .'/'. $MODULE .'/build/'. $BUILD .'/'. $directory;
diff --git a/bin/auto_run_tests.lst b/bin/auto_run_tests.lst
index 04fe8f834bb..02f838a787d 100644
--- a/bin/auto_run_tests.lst
+++ b/bin/auto_run_tests.lst
@@ -16,13 +16,12 @@ TAO/performance-tests/Latency/run_test.pl: MINIMUM ST
TAO/performance-tests/POA/Object_Creation_And_Registration/run_test.pl
TAO/performance-tests/RTCorba/Oneways/Reliable/run_test.pl: MINIMUM
-
TAO/tests/OctetSeq/run_test.pl
TAO/tests/Leader_Followers/run_test.pl: ST
TAO/tests/Multiple_Inheritance/run_test.pl
TAO/tests/Endpoint_Per_Priority/run_test.pl: MINIMUM
-TAO/tests/RTCORBA/Client_Propagated/run_test.pl: MINIMUM
-TAO/tests/RTCORBA/Server_Protocol/run_test.pl: MINIMUM
+TAO/tests/RTCORBA/Client_Propagated/run_test.pl: MINIMUM linux
+TAO/tests/RTCORBA/Server_Protocol/run_test.pl: MINIMUM linux
TAO/tests/MT_Client/run_test.pl: ST
TAO/tests/MT_Server/run_test.pl: ST
TAO/tests/Faults/run_test.pl: MINIMUM
@@ -57,15 +56,15 @@ TAO/examples/POA/Explicit_Activation/run_test.pl: MINIMUM
TAO/examples/POA/FindPOA/run_test.pl: MINIMUM
TAO/examples/POA/Forwarding/run_test.pl: MINIMUM
TAO/examples/POA/NewPOA/run_test.pl: MINIMUM
-TAO/examples/POA/On_Demand_Activation/run_test.pl: MINIMUM
-TAO/examples/POA/On_Demand_Loading/run_test.pl: MINIMUM
+TAO/examples/POA/On_Demand_Activation/run_test.pl: MINIMUM STATIC
+TAO/examples/POA/On_Demand_Loading/run_test.pl: MINIMUM STATIC
TAO/examples/POA/Reference_Counted_Servant/run_test.pl
-TAO/examples/POA/Loader/run_test.pl: MINIMUM
+TAO/examples/POA/Loader/run_test.pl: MINIMUM STATIC
TAO/examples/POA/RootPOA/run_test.pl
TAO/examples/POA/Adapter_Activator/run_test.pl: MINIMUM
TAO/examples/Simple/bank/run_test.pl
TAO/examples/Simple/grid/run_test.pl
-TAO/examples/Simple/time-date/run_test.pl: ST
+TAO/examples/Simple/time-date/run_test.pl: ST STATIC
TAO/examples/Simple/time/run_test.pl
TAO/examples/Load_Balancing/run_test.pl: MINIMUM
diff --git a/bin/run_all_list.pm b/bin/run_all_list.pm
index cb778705a6e..acb0fc36057 100644
--- a/bin/run_all_list.pm
+++ b/bin/run_all_list.pm
@@ -1,7 +1,14 @@
# -*- perl -*-
# $Id$
-# This are the pairs "sub-directory , script" we run; the separator
-# *must* be a space followed by a comma and then another space.
+#
+# WARNING: This file is no longer used by the auto_compile script. It
+# has been left here for backwards compatibility and because some
+# other scripts still use it. If you want to add tests to the nightly
+# builds please use auto_run_tests.lst
+#
+# This are the pairs "sub-directory , script" we
+# run; the separator *must* be a space followed by a comma and then
+# another space.
$ace_tests = 'tests , run_tests.pl';
if ($^O eq "MSWin32") {