blob: 757c34edf687b837fdf6e23a3f6c0a9135268ec6 (
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
39
40
41
42
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# $Id$
# -*- perl -*-
unshift @INC, '../../../../bin';
require Process;
require ACEutils;
$NS_ior = "NameService.ior";
$status = 0;
$NS = Process::Create ("..".$DIR_SEPARATOR.
"..".$DIR_SEPARATOR.
"Naming_Service".$DIR_SEPARATOR.
"Naming_Server".$EXE_EXT,
" -o $NS_ior ");
if (ACE::waitforfile_timed ($NS_ior, 5) == -1) {
print STDERR "ERROR: waiting for naming service IOR file\n";
$NS->Kill (); $NS->TimedWait (1);
exit 1;
}
# This is a very simple test, no multiple consumers and no gateways.
$TEST = Process::Create ($EXEPREFIX."EC_Multiple".$EXE_EXT,
"-ORBNameServiceIOR file://$NS_ior"
." -s local");
if ($TEST->TimedWait (60) == -1) {
print STDERR "ERROR: test timedout\n";
$status = 1;
$TEST->Kill (); $TEST->TimedWait (1);
}
$NS->Terminate (); if ($NS->TimedWait (5) == -1) {
print STDERR "ERROR: cannot terminate naming service\n";
$NS->Kill (); $NS->TimedWait (1);
exit 1;
}
exit $status;
|