More tests update
[ACE_TAO.git] / TAO / tests / Sequence_Unit_Tests / run_test.pl
blobbfe170454bc49a71b10b5146afead0c6254cfe4e
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 use lib "$ENV{ACE_ROOT}/bin";
8 use PerlACE::TestTarget;
9 use strict;
11 my $final_result = 0;
13 my @testsToRun = qw(unbounded_value_sequence_ut
14 bounded_value_sequence_ut
15 string_sequence_element_ut
16 unbounded_string_sequence_ut
17 bounded_string_sequence_ut
18 testing_allocation_traits_ut
19 unbounded_octet_sequence_ut
20 object_reference_sequence_element_ut
21 unbounded_object_reference_sequence_ut
22 unbounded_fwd_object_reference_sequence_ut
23 bounded_object_reference_sequence_ut
24 bounded_sequence_cdr_ut
25 unbounded_sequence_cdr_ut
26 Unbounded_Octet
27 Unbounded_Simple_Types
28 Bounded_Simple_Types
29 Unbounded_String
30 Bounded_String
33 if ($^O ne "MSWin32") {
34 push @testsToRun, qw(unbounded_octet_sequence_nocopy_ut);
37 foreach my $process (@testsToRun) {
39 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
40 my $P = $server->CreateProcess ($process);
41 print "Running $process ...\n";
42 my $result = $P->Spawn;
43 if ($result != 0) {
44 print "FAILED $process\n";
45 $final_result = 1;
46 next;
48 $result = $P->WaitKill($server->ProcessStartWaitInterval());
49 if ($result != 0) {
50 print "FAILED $process\n";
51 $final_result = 1;
52 next;
54 print "SUCCESS\n";
57 exit $final_result;