summaryrefslogtreecommitdiff
path: root/TAO/tests/OctetSeq/run_test.pl
diff options
context:
space:
mode:
authordbudko <dbudko@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-11-20 09:30:08 +0000
committerdbudko <dbudko@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-11-20 09:30:08 +0000
commit36c78fff873dadec71a5d1405bac10ab34a802fa (patch)
tree7abac907ea72817aa256f749054205ae05a0f04d /TAO/tests/OctetSeq/run_test.pl
parent09c7e9bb146c39cae19cb8a8a89493815702e88a (diff)
downloadATCD-36c78fff873dadec71a5d1405bac10ab34a802fa.tar.gz
Fri Nov 20 09:28:50 UTC 2009 Denis Budko <denis.budko@remedy.nl>
* orbsvcs/DevGuideExamples/EventServices/OMG_TypedEC/run_test.pl: * orbsvcs/DevGuideExamples/EventServices/RTEC_Federated/run_test.pl: * orbsvcs/DevGuideExamples/EventServices/OMG_SupplierSideEC/run_test.pl: * orbsvcs/DevGuideExamples/EventServices/RTEC_Filter/run_test.pl: * orbsvcs/DevGuideExamples/EventServices/OMG_Basic/run_test.pl: * orbsvcs/DevGuideExamples/EventServices/RTEC_MCast_Federated/run_test.pl: * orbsvcs/DevGuideExamples/EventServices/RTEC_Basic/run_test.pl: * orbsvcs/tests/Security/EndpointPolicy/run_test.pl: * DevGuideExamples/Multithreading/ThreadPool/MessengerServer.cpp: * DevGuideExamples/Multithreading/ThreadPool/MessengerClient.cpp: * DevGuideExamples/Multithreading/ThreadPool/run_test.pl: * DevGuideExamples/Multithreading/GracefulShutdown/MessengerServer.cpp: * DevGuideExamples/Multithreading/GracefulShutdown/MessengerClient.cpp: * DevGuideExamples/Multithreading/GracefulShutdown/run_test.pl: * DevGuideExamples/Multithreading/ThreadPerConnection/MessengerServer.cpp: * DevGuideExamples/Multithreading/ThreadPerConnection/MessengerClient.cpp: * DevGuideExamples/Multithreading/ThreadPerConnection/run_test.pl: * DevGuideExamples/AMH_AMI/inner_server.cpp: * DevGuideExamples/AMH_AMI/client.cpp: * DevGuideExamples/AMH_AMI/middle_server.cpp: * DevGuideExamples/AMH_AMI/run_test.pl: * tests/OctetSeq/run_test1.pl: * tests/OctetSeq/run_test2.pl: * tests/OctetSeq/run_test.pl: * tests/Bug_1330_Regression/server.cpp: * tests/Bug_1330_Regression/run_test.pl: * tests/Leader_Followers/run_test.pl: * tests/NestedUpcall/MT_Client_Test/run_test.pl: * tests/Bug_2702_Regression/run_test.pl: * tests/IPV6/run_test.pl: * tests/MProfile_Connection_Timeout/run_test.pl: Tests are converted to use new test framework and added to fuzz build.
Diffstat (limited to 'TAO/tests/OctetSeq/run_test.pl')
-rwxr-xr-xTAO/tests/OctetSeq/run_test.pl40
1 files changed, 37 insertions, 3 deletions
diff --git a/TAO/tests/OctetSeq/run_test.pl b/TAO/tests/OctetSeq/run_test.pl
index 763d9e82b22..dd58f82249e 100755
--- a/TAO/tests/OctetSeq/run_test.pl
+++ b/TAO/tests/OctetSeq/run_test.pl
@@ -8,6 +8,23 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
use lib "$ENV{ACE_ROOT}/bin";
use PerlACE::TestTarget;
+$status = 0;
+$debug_level = '0';
+
+$client_iterations = '5000';
+
+$octet_iterations = '32';
+$low = '8192';
+$high = '8192';
+$step = '1';
+
+foreach $i (@ARGV) {
+ if ($i eq '-debug') {
+ $debug_level = '10';
+ }
+}
+
+
my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
my $client = PerlACE::TestTarget::create_target (2) || die "Create target 2 failed\n";
my $t3 = PerlACE::TestTarget::create_target (3) || die "Create target 3 failed\n";
@@ -20,9 +37,15 @@ my $client_iorfile = $t3->LocalFile ($iorbase);
$server->DeleteFile($iorbase);
$client->DeleteFile($iorbase);
-$SV = $server->CreateProcess ("server", "-o $server_iorfile");
-$T = $client->CreateProcess ("OctetSeq", "-n 32 -l 8192 -h 8192 -s 1 -q");
-$CL = $t3->CreateProcess ("client", "-i 5000 -k file://$client_iorfile");
+$SV = $server->CreateProcess ("server",
+ "-ORBdebuglevel $debug_level " .
+ "-o $server_iorfile");
+
+$T = $client->CreateProcess ("OctetSeq",
+ "-ORBdebuglevel $debug_level " .
+ "-n $octet_iterations -l $low -h $high -s $step -q");
+
+$CL = $t3->CreateProcess ("client", "-i $client_iterations -k file://$client_iorfile");
print STDERR "\n\n==== Octet sequence passing test\n";
@@ -40,6 +63,17 @@ if ($server->WaitForFileTimed ($iorbase,
exit 1;
}
+if ($server->GetFile ($iorbase) == -1) {
+ print STDERR "ERROR: cannot retrieve file <$server_iorfile>\n";
+ $SV->Kill (); $SV->TimedWait (1);
+ exit 1;
+}
+if ($client->PutFile ($iorbase) == -1) {
+ print STDERR "ERROR: cannot set file <$client_iorfile>\n";
+ $SV->Kill (); $SV->TimedWait (1);
+ exit 1;
+}
+
$client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval() + 100);
if ($client_status != 0) {