summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs
diff options
context:
space:
mode:
authornaga <naga@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-23 17:33:11 +0000
committernaga <naga@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-23 17:33:11 +0000
commitf107aa6cb210a5cdc5c7a233a66eb085cca35304 (patch)
treea594aae2da02611d55d79825cf670c27f0b5db41 /TAO/orbsvcs
parentb554e496cd0722c1da4c869f0dbf7e5aaa6662d9 (diff)
downloadATCD-f107aa6cb210a5cdc5c7a233a66eb085cca35304.tar.gz
Added a new run_test.pl script for this directory.
Diffstat (limited to 'TAO/orbsvcs')
-rwxr-xr-xTAO/orbsvcs/tests/AVStreams/sfp/run_test.pl44
1 files changed, 44 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/sfp/run_test.pl b/TAO/orbsvcs/tests/AVStreams/sfp/run_test.pl
new file mode 100755
index 00000000000..68e8f904eb2
--- /dev/null
+++ b/TAO/orbsvcs/tests/AVStreams/sfp/run_test.pl
@@ -0,0 +1,44 @@
+# $Id$
+# -*- perl -*-
+eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
+ & eval 'exec perl -S $0 $argv:q'
+ if 0;
+
+$tao_root = $ENV{TAO_ROOT};
+# This is a Perl script that runs the Naming Service, client and servers
+
+unshift @INC, '../../../../../bin';
+require Process;
+require Uniqueid;
+
+# amount of delay between running the servers
+
+$sleeptime = 6;
+
+# variables for parameters
+
+sub run_test
+{
+ my $args = "";
+ print ("\nServer: server$Process::EXE_EXT $args\n");
+ $SV = Process::Create ($EXEPREFIX."server$Process::EXE_EXT", $args);
+
+ my $args = "";
+ print ("\nclient: client $args\n");
+ $CL = Process::Create ($EXEPREFIX."client$Process::EXE_EXT", $args);
+
+ $client = $CL->TimedWait (60);
+ if ($client == -1) {
+ print STDERR "ERROR: client timedout\n";
+ $CL->Kill (); $CL->TimedWait (1);
+ }
+
+ $server = $SV->TimedWait (2);
+ if ($server == -1) {
+ print STDERR "ERROR: server timedout\n";
+ $SV->Kill (); $SV->TimedWait (1);
+ }
+
+}
+
+run_test;