blob: 855fbfb8b14409fa32547d7c6033d79f4e38f9c4 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# $Id$
# -*- perl -*-
use lib "../../../../../../../../bin";
use PerlACE::Run_Test;
$experiment_timeout = 600;
$startup_timeout = 60;
$naming_ior = PerlACE::LocalFile ("naming.ior");
$colocated_conf = PerlACE::LocalFile ("colocated.conf");
$status = 0;
$Naming = new PerlACE::Process ("../../../../../../Naming_Service/Naming_Service",
"-o $naming_ior");
$Colocated = new PerlACE::Process ("../../../../Driver/Notify_Tests_Driver");
$Colocated_Args = "-ORBInitRef NameService=file://$naming_ior -ORBSvcConf $colocated_conf";
unlink $naming_ior;
$Naming->Spawn ();
if (PerlACE::waitforfile_timed ($naming_ior, $startup_timeout) == -1) {
print STDERR "ERROR: waiting for the naming service to start\n";
$Naming->Kill ();
exit 1;
}
$Colocated->Arguments ($Colocated_Args);
$args = $Colocated->Arguments ();
print STDERR "Running Colocated with arguments: $args\n";
$status = $Colocated->SpawnWaitKill ($experiment_timeout);
if ($status != 0)
{
print STDERR "ERROR: Colocated returned $status\n";
$Notification->Kill ();
$Naming->Kill ();
exit 1;
}
$Naming->Kill ();
unlink $naming_ior;
if ($#ARGV > -1)
{
$results_directory = $ARGV[0];
print STDERR "Saving results to $results_directory\n";
mkdir $results_directory, 0777;
@list=glob("*.dat");
for $file (@list)
{
copy ("$file", "$results_directory/$file");
}
@list=glob("*.conf");
for $file (@list)
{
copy ("$file", "$results_directory/$file");
}
}
exit $status;
|