summaryrefslogtreecommitdiff
path: root/TAO/performance-tests
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests')
-rwxr-xr-xTAO/performance-tests/Sequence_Latency/Sequence_Operations_Time/run_test.pl42
1 files changed, 42 insertions, 0 deletions
diff --git a/TAO/performance-tests/Sequence_Latency/Sequence_Operations_Time/run_test.pl b/TAO/performance-tests/Sequence_Latency/Sequence_Operations_Time/run_test.pl
new file mode 100755
index 00000000000..c37d05b7a0f
--- /dev/null
+++ b/TAO/performance-tests/Sequence_Latency/Sequence_Operations_Time/run_test.pl
@@ -0,0 +1,42 @@
+eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
+ & eval 'exec perl -S $0 $argv:q'
+ if 0;
+
+# $Id$
+# -*- perl -*-
+
+use lib "$ENV{ACE_ROOT}/bin";
+use PerlACE::TestTarget;
+
+$status = 0;
+$debug_level = '0';
+
+foreach $i (@ARGV) {
+ if ($i eq '-debug') {
+ $debug_level = '10';
+ }
+}
+
+print STDERR "================ Sequence Operations Time Test\n";
+
+for ($i = 0; $i <= $#ARGV; $i++) {
+ if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") {
+ print "Run_Test Perl script for Performance Test\n\n";
+ print "run_test \n";
+ print "\n";
+ exit 0;
+ }
+}
+
+my $client = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
+
+$CL = $client->CreateProcess ("test", "-ORBdebuglevel $debug_level");
+
+$client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval() + 405);
+
+if ($test_status != 0) {
+ print STDERR "ERROR: test returned $client_status\n";
+ $status = 1;
+}
+
+exit $status;