summaryrefslogtreecommitdiff
path: root/TAO/tests/Sequence_Unit_Tests/run_test.pl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Sequence_Unit_Tests/run_test.pl')
-rwxr-xr-xTAO/tests/Sequence_Unit_Tests/run_test.pl78
1 files changed, 21 insertions, 57 deletions
diff --git a/TAO/tests/Sequence_Unit_Tests/run_test.pl b/TAO/tests/Sequence_Unit_Tests/run_test.pl
index 3b3ec000483..2de72fc741f 100755
--- a/TAO/tests/Sequence_Unit_Tests/run_test.pl
+++ b/TAO/tests/Sequence_Unit_Tests/run_test.pl
@@ -6,37 +6,24 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
# -*- perl -*-
use lib "$ENV{ACE_ROOT}/bin";
-use PerlACE::Run_Test;
+use PerlACE::TestTarget;
use strict;
-if ($ARGV[0] =~ /^-h/i || $ARGV[0] =~ /^-\?/i) {
- print "Usage: run_test.pl [-boost|-noboost]\n".
- "\tDefault is to run all tests, specifying -boost or -noboost will\n".
- "\teither run the tests that require the boost unit test library or\n".
- "\tthe other tests, respectively.\n";
- exit 0;
-}
-
my $final_result = 0;
-my @tests = qw(unbounded_value_sequence_ut
- unbounded_array_sequence_ut
+my @testsToRun = qw(unbounded_value_sequence_ut
bounded_value_sequence_ut
string_sequence_element_ut
unbounded_string_sequence_ut
bounded_string_sequence_ut
testing_allocation_traits_ut
unbounded_octet_sequence_ut
- unbounded_octet_sequence_no_copy_ut
object_reference_sequence_element_ut
unbounded_object_reference_sequence_ut
unbounded_fwd_object_reference_sequence_ut
bounded_object_reference_sequence_ut
bounded_sequence_cdr_ut
unbounded_sequence_cdr_ut
- );
-
-my @testsNoBoost = qw(
Unbounded_Octet
Unbounded_Simple_Types
Bounded_Simple_Types
@@ -44,51 +31,28 @@ my @testsNoBoost = qw(
Bounded_String
);
-my @testsToRun = qw();
-
-push(@testsToRun, @tests) if ($#ARGV < 0 || $ARGV[0] eq '-boost');
-push(@testsToRun, @testsNoBoost) if ($#ARGV < 0 || $ARGV[0] eq '-noboost');
-
+if ($^O ne "MSWin32") {
+ push @testsToRun, qw(unbounded_octet_sequence_nocopy_ut);
+}
foreach my $process (@testsToRun) {
-
-
- my $P = 0;
- if (PerlACE::is_vxworks_test()) {
- $P = new PerlACE::ProcessVX ($process,
- '--log_level=nothing '
- .'--report_level=no');
- }
- else {
- $P = new PerlACE::Process ($process,
- '--log_level=nothing '
- .'--report_level=no');
- }
- my $executable = $P->Executable;
-
- # Not all the binaries are generated in all configurations.
- if (PerlACE::is_vxworks_test()) {
- next unless -e $executable;
- }
- else {
- next unless -x $executable;
- }
-
- print "Running $process ...";
- my $result = $P->Spawn;
- if ($result != 0) {
- print "FAILED\n";
- $final_result = 1;
- next;
- }
- $result = $P->WaitKill($PerlACE::wait_interval_for_process_creation);
- if ($result != 0) {
- print "FAILED\n";
- $final_result = 1;
- next;
- }
- print "SUCCESS\n";
+ my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
+ my $P = $server->CreateProcess ($process);
+ print "Running $process ...\n";
+ my $result = $P->Spawn;
+ if ($result != 0) {
+ print "FAILED $process\n";
+ $final_result = 1;
+ next;
+ }
+ $result = $P->WaitKill($server->ProcessStartWaitInterval());
+ if ($result != 0) {
+ print "FAILED $process\n";
+ $final_result = 1;
+ next;
+ }
+ print "SUCCESS\n";
}
exit $final_result;