summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2001-07-28 02:51:51 +0000
committerbala <balanatarajan@users.noreply.github.com>2001-07-28 02:51:51 +0000
commita8504f405f10b6b890bab9ec8fdc02c569fa6593 (patch)
treed533dbe3ca8ffc6b8eaa68862438ae56f63197bd /TAO/performance-tests/Cubit
parent527dff9e2299a7576e644135177097c1b8df3f49 (diff)
downloadATCD-a8504f405f10b6b890bab9ec8fdc02c569fa6593.tar.gz
ChangeLogTag: Fri Jul 27 21:48:12 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/performance-tests/Cubit')
-rwxr-xr-xTAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test.pl18
-rwxr-xr-xTAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test_lite.pl140
2 files changed, 141 insertions, 17 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test.pl b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test.pl
index 0091d3c7100..a29ad457d6c 100755
--- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test.pl
+++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test.pl
@@ -33,13 +33,12 @@ $giopliteflag = 0;
for ($i = 0; $i <= $#ARGV; $i++) {
if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") {
- print "run_test [-h] [-n num] [-debug] [-orblite] [-verbose]\n";
+ print "run_test [-h] [-n num] [-debug] [-verbose]\n";
print "\n";
print "-h -- prints this information\n";
print "-n num -- client uses <num> iterations\n";
print "-debug -- sets the debug flag for both client and "
. "server\n";
- print "-orblite -- Use the lite version of the orb";
exit;
}
elsif ($ARGV[$i] eq "-debug") {
@@ -50,9 +49,6 @@ for ($i = 0; $i <= $#ARGV; $i++) {
$clflags .= " -n $ARGV[$i + 1] ";
$i++;
}
- elsif ($ARGV[$i] eq "-orblite") {
- $giopliteflag = 1;
- }
elsif ($ARGV[$i] eq "-verbose") {
$quietflag = "";
}
@@ -108,12 +104,6 @@ print STDERR "Running IDL_Cubit with the default ORB protocol.\n\n";
$SV->Arguments ($svflags . $svnsflags);
$CL->Arguments ($clflags . $clnsflags . $quietflag . " -x ");
-if ($giopliteflag) {
- print STDERR "\nRunning IDL_Cubit with the a lite ORB protocol.\n\n";
- $SV->Arguments ($SV->Arguments () . " -ORBSvcConf $iiop_lite_conf ");
- $CL->Arguments ($CL->Arguments () . " -ORBSvcConf $iiop_lite_conf ");
-}
-
run_test_helper ();
if ($OSNAME ne "MSWin32") {
@@ -123,12 +113,6 @@ if ($OSNAME ne "MSWin32") {
$SV->Arguments ($svflags . $svnsflags . " -ORBEndpoint uiop:// ");
$CL->Arguments ($clflags . $clnsflags . $quietflag . " -x ");
- if ($giopliteflag) {
- print STDERR "\nRunning IDL_Cubit with the a UIOP lite ORB protocol.\n\n";
- $SV->Arguments ($SV->Arguments () . " -ORBSvcConf $uiop_lite_conf ");
- $CL->Arguments ($CL->Arguments () . " -ORBSvcConf $uiop_lite_conf ");
- }
-
run_test_helper ();
}
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test_lite.pl b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test_lite.pl
new file mode 100755
index 00000000000..450db14fd79
--- /dev/null
+++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test_lite.pl
@@ -0,0 +1,140 @@
+eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
+ & eval 'exec perl -S $0 $argv:q'
+ if 0;
+
+# $Id$
+# -*- perl -*-
+
+# The first three lines above let this script run without specifying the
+# full path to perl, as long as it is in the user's PATH.
+# Taken from perlrun man page.
+
+# Do not use environment variables here since not all platforms use ACE_ROOT
+use lib "../../../../../bin";
+use PerlACE::Run_Test;
+use English;
+
+$status = 0;
+
+$iorfile = PerlACE::LocalFile ("cubit.ior");
+$iiop_lite_conf = PerlACE::LocalFile ("iiop_lite.conf");
+$uiop_lite_conf = PerlACE::LocalFile ("uiop_lite.conf");
+#$server_shmiop_conf = PerlACE::LocalFile ("server_shmiop_lite.conf");
+#$client_shmiop_conf = PerlACE::LocalFile ("client_shmiop_lite.conf");
+$svnsflags = " -f $iorfile";
+$clnsflags = " -f $iorfile";
+$clflags = "";
+$svflags = "";
+$quietflag = " -q ";
+
+
+###############################################################################
+# Parse the arguments
+
+for ($i = 0; $i <= $#ARGV; $i++) {
+ if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") {
+ print "run_test [-h] [-n num] [-debug] [-verbose]\n";
+ print "\n";
+ print "-h -- prints this information\n";
+ print "-n num -- client uses <num> iterations\n";
+ print "-debug -- sets the debug flag for both client and "
+ . "server\n";
+ exit;
+ }
+ elsif ($ARGV[$i] eq "-debug") {
+ $clflags .= " -d ";
+ $svflags .= " -d ";
+ }
+ elsif ($ARGV[$i] eq "-n") {
+ $clflags .= " -n $ARGV[$i + 1] ";
+ $i++;
+ }
+ elsif ($ARGV[$i] eq "-verbose") {
+ $quietflag = "";
+ }
+ else {
+ print STDERR "ERROR: Unknown Option: ".$ARGV[$i]."\n";
+ }
+}
+
+$SV = new PerlACE::Process ("server");
+$CL = new PerlACE::Process ("client");
+
+###############################################################################
+# run_test_helper
+
+sub run_test_helper ()
+{
+ $SV->Spawn ();
+
+ if (PerlACE::waitforfile_timed ($iorfile, 10) == -1) {
+ print STDERR "ERROR: cannot find file <$iorfile>\n";
+ $SV->Kill ();
+ exit 1;
+ }
+
+ my $client = $CL->SpawnWaitKill (120);
+ my $server = $SV->WaitKill (30);
+
+ unlink $iorfile;
+
+ if ($server != 0) {
+ print STDERR "ERROR: server error status $server\n";
+ $status = 1;
+ }
+
+ if ($client != 0) {
+ print STDERR "ERROR: client error status $client\n";
+ $status = 1;
+ }
+}
+
+###############################################################################
+
+if (! (-x $SV->Executable () && -x $CL->Executable)) {
+ print STDERR "ERROR: server and/or client missing or not executable!\n";
+ exit 1;
+}
+
+unlink $iorfile;
+
+print STDERR "============================================================\n";
+print STDERR "Running IDL_Cubit with the IIOP Lite ORB protocol.\n\n";
+
+$SV->Arguments ($svflags . $svnsflags);
+$CL->Arguments ($clflags . $clnsflags . $quietflag . " -x ");
+
+$SV->Arguments ($SV->Arguments () . " -ORBSvcConf $iiop_lite_conf ");
+$CL->Arguments ($CL->Arguments () . " -ORBSvcConf $iiop_lite_conf ");
+
+run_test_helper ();
+
+if ($OSNAME ne "MSWin32") {
+ print STDERR "============================================================\n";
+ print STDERR "Running IDL_Cubit with the UIOP Lite protocol.\n\n";
+
+ $SV->Arguments ($svflags . $svnsflags . " -ORBEndpoint uiop:// ");
+ $CL->Arguments ($clflags . $clnsflags . $quietflag . " -x ");
+
+ $SV->Arguments ($SV->Arguments () . " -ORBSvcConf $uiop_lite_conf ");
+ $CL->Arguments ($CL->Arguments () . " -ORBSvcConf $uiop_lite_conf ");
+
+ run_test_helper ();
+}
+
+# This portions needs to be enabled once we have an SHMIOP_Lite in
+# place..
+
+#print STDERR "============================================================\n";
+#print STDERR "Running IDL_Cubit with the SHMIOP Lite protocol.\n\n";
+
+#$SV->Arguments ($svflags . $svnsflags
+# . " -ORBEndpoint shmiop:// -ORBSvcconf $server_shmiop_conf ");
+#$CL->Arguments ($clflags . $clnsflags . $quietflag . "-ORBSvcConf $client_shmiop_conf -x ");
+
+#run_test_helper ();
+
+# Clean up SHMIOP files
+#PerlACE::check_n_cleanup_files ("server_shmiop_*");
+
+exit $status;