summaryrefslogtreecommitdiff
path: root/tests/Leader_Followers/run_test.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Leader_Followers/run_test.pl')
-rwxr-xr-xtests/Leader_Followers/run_test.pl27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/Leader_Followers/run_test.pl b/tests/Leader_Followers/run_test.pl
index 8935ffa36c4..ba7cf1d9d8e 100755
--- a/tests/Leader_Followers/run_test.pl
+++ b/tests/Leader_Followers/run_test.pl
@@ -24,11 +24,15 @@ my $iorbase = "lf.ior";
my $tp_conf_base = "tp$PerlACE::svcconf_ext";
my $select_mt_conf_base = "select_mt$PerlACE::svcconf_ext";
+# init server configuration files
my $server_tp_conf_file = $server->LocalFile ($tp_conf_base);
my $server_select_mt_conf_file = $server->LocalFile ($select_mt_conf_base);
+
+# init client configuration files
my $client_tp_conf_file = $client->LocalFile ($tp_conf_base);
my $client_select_mt_conf_file = $client->LocalFile ($select_mt_conf_base);
+# init ior files
my $server_iorfile = $server->LocalFile ($iorbase);
my $client_iorfile = $client->LocalFile ($iorbase);
$server->DeleteFile($iorbase);
@@ -177,6 +181,29 @@ for ($i = 0; $i <= $#ARGV; $i++) {
}
}
+# Copy configuration files to the targets
+if ($server->PutFile ($tp_conf_base) == -1) {
+ print STDERR "ERROR: cannot set file <$server_tp_conf_file>\n";
+ $SV->Kill (); $SV->TimedWait (1);
+ return 1;
+}
+if ($server->PutFile ($select_mt_conf_base) == -1) {
+ print STDERR "ERROR: cannot set file <$server_select_mt_conf_file>\n";
+ $SV->Kill (); $SV->TimedWait (1);
+ return 1;
+}
+
+if ($client->PutFile ($tp_conf_base) == -1) {
+ print STDERR "ERROR: cannot set file <$client_tp_conf_file>\n";
+ $SV->Kill (); $SV->TimedWait (1);
+ return 1;
+}
+if ($client->PutFile ($select_mt_conf_base) == -1) {
+ print STDERR "ERROR: cannot set file <$client_select_mt_conf_file>\n";
+ $SV->Kill (); $SV->TimedWait (1);
+ return 1;
+}
+
if ($single == 1) {
print STDERR "\n\n*** Single threaded server ***\n\n\n";
$run_status = run_server("-ORBsvcconf $server_select_mt_conf_file");