summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/EC_Mcast/run_test.pl
blob: 9af67926b846cfc5e7a230d695f0b2b451af1b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
    & eval 'exec perl -S $0 $argv:q'
    if 0;

# $Id$
# -*- perl -*-

unshift @INC, '../../../../bin';
require ACEutils;
use Cwd;

$cwd = getcwd();
ACE::checkForTarget($cwd);

# Run two copies of the same test...
$T1 = Process::Create ($EXEPREFIX."EC_Mcast".$EXE_EXT,
		       " -c $cwd$DIR_SEPARATOR" .
                       "sample.cfg -ORBSvcConf $cwd$DIR_SEPARATOR" .
                       "svc.conf -n 100 -t 50000 -f Set02");
$T2 = Process::Create ($EXEPREFIX."EC_Mcast".$EXE_EXT,
		       " -c $cwd$DIR_SEPARATOR" .
                       "sample.cfg -ORBSvcConf $cwd$DIR_SEPARATOR" .
                       "svc.conf -n 100 -t 50000 -f Set02");

if ($T1->TimedWait (60) == -1) {
  print STDERR "ERROR: test1 timedout\n";
  $T1->Kill (); $T1->TimedWait (1);
  $T2->Kill (); $T2->TimedWait (1);
  exit 1;
}

if ($T2->TimedWait (60) == -1) {
  print STDERR "ERROR: test2 timedout\n";
  $T2->Kill (); $T2->TimedWait (1);
  exit 1;
}

exit 0;