1
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2
& eval 'exec perl -S $0 $argv:q'
5
# run_test.pl,v 1.1 2001/12/31 17:08:54 parsons Exp
8
use lib '../../../bin';
9
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
10
& eval 'exec perl -S $0 $argv:q'
13
# run_test.pl,v 1.1 2001/12/31 17:08:54 parsons Exp
16
# This is a Perl script that runs all Naming Service tests. It starts
17
# all the servers and clients as necessary.
19
use lib '../../../../bin';
20
use PerlACE::Run_Test;
22
$iorfile = PerlACE::LocalFile ("server.ior");
25
$SV = new PerlACE::Process ("server", "-o $iorfile");
26
$CL = new PerlACE::Process ("client", " -k file://$iorfile");
30
if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) {
31
print STDERR "ERROR: cannot find file <$iorfile>\n";
32
$SV->Kill (); $SV->TimedWait (1);
36
$client = $CL->SpawnWaitKill (300);
39
print STDERR "ERROR: client returned $client\n";
43
$server = $SV->WaitKill (10);
46
print STDERR "ERROR: server returned $server\n";