summaryrefslogtreecommitdiff
path: root/TAO/performance-tests
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2011-04-06 14:07:50 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2011-04-06 14:07:50 +0000
commit05a24764f25a2ca335592a20b6ae7b7a0f382b81 (patch)
tree31734ec1e84f3d6529a9382a59322808f5bd0f54 /TAO/performance-tests
parent17be021719c664a230f6d00103bd2918010585c1 (diff)
downloadATCD-05a24764f25a2ca335592a20b6ae7b7a0f382b81.tar.gz
Wed Apr 6 13:56:43 UTC 2011 Phil Mesnier <mesnier_p@ociweb.com>
* performance-tests/Sequence_Latency/Sequence_Operations_Time/run_test.pl: * bin/tao_other_tests.lst: Added run_test.pl to new performance test and included it in the other tests list for nightly running.
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;