Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / IOR_MCast / run_test_ipv6.pl
blob9a2c92f36f27a499967dcc0756dbecf184950a02
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;
10 $status = 0;
11 $debug_level = '0';
13 foreach $i (@ARGV) {
14 if ($i eq '-debug') {
15 $debug_level = '10';
19 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
20 my $client = PerlACE::TestTarget::create_target (2) || die "Create target 2 failed\n";
22 my $server_port = 23456;
23 my $mcast_port = 12345;
25 $SV = $server->CreateProcess ("server", "-a [ff01::1]:12345 -ORBEndpoint iiop://[::1]:23456");
26 $CL = $client->CreateProcess ("client", "-ORBInitRef MCASTServer=mcast://[ff01::1]:12345::2/MCASTServer");
27 $server_status = $SV->Spawn ();
29 if ($server_status != 0) {
30 print STDERR "ERROR: server returned $server_status\n";
31 exit 1;
34 sleep 3;
36 $client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval());
38 if ($client_status != 0) {
39 print STDERR "ERROR: client returned $client_status\n";
40 $status = 1;
43 $server_status = $SV->TerminateWaitKill ($server->ProcessStopWaitInterval());
45 if ($server_status != 0) {
46 print STDERR "ERROR: server returned $server_status\n";
47 $status = 1;
50 exit $status;