Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Sequence_Unit_Tests / run_test.pl
blob264c52b73ccec751fc79486f0119d43f456f7001
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);
32 if ($^O ne "MSWin32") {
33 push @testsToRun, qw(unbounded_octet_sequence_nocopy_ut);
36 foreach my $process (@testsToRun) {
38 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
39 my $P = $server->CreateProcess ($process);
40 print "Running $process ...\n";
41 my $result = $P->Spawn;
42 if ($result != 0) {
43 print "FAILED $process\n";
44 $final_result = 1;
45 next;
47 $result = $P->WaitKill($server->ProcessStartWaitInterval());
48 if ($result != 0) {
49 print "FAILED $process\n";
50 $final_result = 1;
51 next;
53 print "SUCCESS\n";
56 exit $final_result;