summaryrefslogtreecommitdiff
path: root/TAO/examples
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-21 05:40:17 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-21 05:40:17 +0000
commit644cfa89cb6db68e9e0e08aaddfd9334ed63dbf6 (patch)
treef360cdbba944ff0aeb27151c436057ef44d41e35 /TAO/examples
parent67e153941a7425ac9796fbcfeebac64c3b418444 (diff)
downloadATCD-644cfa89cb6db68e9e0e08aaddfd9334ed63dbf6.tar.gz
ChangeLogTag: Sat Apr 21 00:40:00 2001 Michael Kircher <Michael.Kircher@mchp.siemens.de>
Diffstat (limited to 'TAO/examples')
-rwxr-xr-xTAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl40
1 files changed, 40 insertions, 0 deletions
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl b/TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl
new file mode 100755
index 00000000000..70565b9f940
--- /dev/null
+++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl
@@ -0,0 +1,40 @@
+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;
+
+$status = 0;
+$iorfile = PerlACE::LocalFile ("time.ior");
+
+$SV = new PerlACE::Process ("server", "-o $iorfile");
+$CL = new PerlACE::Process ("client", "-k file://$iorfile");
+
+$SV->Spawn ();
+
+if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) {
+ print STDERR "ERROR: could not find file <$iorfile>\n";
+ $SV->Kill ();
+ exit 1;
+}
+
+$client = $CL->SpawnWaitKill (60);
+if ($client != 0) {
+ print STDERR "ERROR: client returned $client\n";
+ $status = 1;
+}
+
+$server = $SV->WaitKill (5);
+
+if ($server != 0) {
+ print STDERR "ERROR: server returned $server\n";
+ $status = 1;
+}
+
+unlink $iorfile;
+
+exit $status;