diff options
Diffstat (limited to 'ACE/TAO/tests/Sequence_Iterators/run_test.pl')
-rwxr-xr-x | ACE/TAO/tests/Sequence_Iterators/run_test.pl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ACE/TAO/tests/Sequence_Iterators/run_test.pl b/ACE/TAO/tests/Sequence_Iterators/run_test.pl new file mode 100755 index 00000000000..8adb8be1389 --- /dev/null +++ b/ACE/TAO/tests/Sequence_Iterators/run_test.pl @@ -0,0 +1,46 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +use lib "$ENV{ACE_ROOT}/bin"; +use PerlACE::TestTarget; +use strict; + +my $final_result = 0; + +my @testsToRun = qw( + StringSeq + Bounded_String + Unbounded_Value + Unbounded_Objectref + ); + +foreach my $process (@testsToRun) { + + 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; + + + + + |