summaryrefslogtreecommitdiff
path: root/ACE/bin/auto_run_tests.pl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2012-06-11 17:08:25 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2012-06-11 17:08:25 +0000
commit323c385b3662845d294c36b4cd9563ca23c7690b (patch)
treec6b3a12b8e987086940dc30993268ce5ffc57e03 /ACE/bin/auto_run_tests.pl
parent43dea5641fe7f64c2cb71771b2859ea82960a4e1 (diff)
downloadATCD-323c385b3662845d294c36b4cd9563ca23c7690b.tar.gz
Mon Jun 11 17:05:36 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* bin/auto_run_tests.pl: Added option -d to run OpenDDS tests also * bin/diff-builds-and-group-fixed-tests-only.sh: Also check OpenDDS lst files
Diffstat (limited to 'ACE/bin/auto_run_tests.pl')
-rwxr-xr-xACE/bin/auto_run_tests.pl25
1 files changed, 23 insertions, 2 deletions
diff --git a/ACE/bin/auto_run_tests.pl b/ACE/bin/auto_run_tests.pl
index 50714384ed3..5f3f7a612bd 100755
--- a/ACE/bin/auto_run_tests.pl
+++ b/ACE/bin/auto_run_tests.pl
@@ -17,7 +17,7 @@ use English;
use Getopt::Std;
use Cwd;
-use Env qw(ACE_ROOT PATH TAO_ROOT CIAO_ROOT DANCE_ROOT);
+use Env qw(ACE_ROOT PATH TAO_ROOT CIAO_ROOT DANCE_ROOT DDS_ROOT);
if (!defined $TAO_ROOT && -d "$ACE_ROOT/TAO") {
$TAO_ROOT = "$ACE_ROOT/TAO";
@@ -28,10 +28,13 @@ if (!defined $CIAO_ROOT && -d "$ACE_ROOT/TAO/CIAO") {
if (!defined $DANCE_ROOT && -d "$ACE_ROOT/TAO/DAnCE") {
$DANCE_ROOT = "$ACE_ROOT/TAO/DAnCE";
}
+if (!defined $DDS_ROOT && -d "$ACE_ROOT/TAO/DDS") {
+ $DDS_ROOT = "$ACE_ROOT/TAO/DDS";
+}
################################################################################
-if (!getopts ('adl:os:r:tC') || $opt_h) {
+if (!getopts ('adl:os:r:tCd') || $opt_h) {
print "auto_run_tests.pl [-a] [-h] [-s sandbox] [-o] [-t]\n";
print "\n";
print "Runs the tests listed in auto_run_tests.lst\n";
@@ -44,6 +47,7 @@ if (!getopts ('adl:os:r:tC') || $opt_h) {
print " -o ORB test only\n";
print " -t TAO tests (other than ORB tests) only\n";
print " -C CIAO and DAnCE tests only\n";
+ print " -d Run OpenDDS tests only\n";
print " -Config cfg Run the tests for the <cfg> configuration\n";
print " -l list Load the list and run only those tests\n";
print " -r dir Root directory for running the tests\n";
@@ -73,6 +77,12 @@ if (!getopts ('adl:os:r:tC') || $opt_h) {
print "DAnCE Test Configs: " . $dance_config_list->list_configs ()
. "\n";
}
+ if (defined $DDS_ROOT) {
+ $dds_config_list = new PerlACE::ConfigList;
+ $dds_config_list->load ($DDS_ROOT."/bin/dcps_tests.lst");
+ print "DDS Test Configs: " . $dds_config_list->list_configs ()
+ . "\n";
+ }
exit (1);
}
@@ -95,6 +105,10 @@ push (@file_list, "$CIAO_ROOT/bin/ciao_tests.lst");
push (@file_list, "$DANCE_ROOT/bin/dance_tests.lst");
}
+if ($opt_d) {
+push (@file_list, "$DDS_ROOT/bin/dcps_tests.lst");
+}
+
if ($opt_r) {
$startdir = $opt_r;
}
@@ -118,6 +132,9 @@ if (scalar(@file_list) == 0) {
if (-d $DANCE_ROOT) {
push (@file_list, "$DANCE_ROOT/bin/dance_tests.lst");
}
+ if (-d $DDS_ROOT) {
+ push (@file_list, "$DDS_ROOT/bin/dcps_tests.lst");
+ }
}
foreach my $test_lst (@file_list) {
@@ -170,12 +187,16 @@ foreach my $test_lst (@file_list) {
if ($directory =~ m:^DAnCE/(.*):) {
$directory = $1;
}
+ if ($directory =~ m:^DDS/(.*):) {
+ $directory = $1;
+ }
$status = undef;
foreach my $path ($ACE_ROOT."/$directory",
$TAO_ROOT."/$directory",
$CIAO_ROOT."/$directory",
$DANCE_ROOT."/$directory",
+ $DDS_ROOT."/$directory",
$startdir."/$directory",
$startdir."/$orig_dir") {
if (-d $path && ($status = chdir ($path))) {