Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Event / Performance / run_test.pl
blobb894e0031b24314b390214f7dc8a9a9385f32f27
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 # This is a Perl script that runs the client and all the other servers that
8 # are needed
10 use lib "$ENV{ACE_ROOT}/bin";
11 use PerlACE::TestTarget;
13 $status = 0;
15 my $test = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
17 $test->AddLibPath ('../lib');
19 $ec_st_conf = $test->LocalFile ("ec.st$PerlACE::svcconf_ext");
21 sub RunTest ($$$)
23 my $message = shift;
24 my $program = shift;
25 my $arguments = shift;
27 my $T = $test->CreateProcess ($program, $arguments);
29 print STDERR "\n\n$message\n";
31 my $test_status = $T->SpawnWaitKill ($test->ProcessStartWaitInterval() + 45);
33 if ($test_status != 0) {
34 print STDERR "ERROR: Test returned $test_status\n";
35 $status = 1;
39 RunTest ("\n\nThroughput/Latency single threaded configuration\n",
40 "Throughput",
41 "-ORBsvcconf $ec_st_conf -burstsize 2000 -burstcount 1");
43 RunTest ("\n\nThroughput/Latency MT-safe configuration\n",
44 "Throughput",
45 "-burstsize 2000 -burstcount 1");
47 RunTest ("\n\nThroughput/Latency MT-safe configuration, 4 consumers\n",
48 "Throughput",
49 "-burstsize 2000 -burstcount 1 -consumers 4");
51 RunTest ("\n\nThroughput/Latency MT-safe configuration, 4 consumers 4 suppliers\n",
52 "Throughput",
53 "-burstsize 2000 -burstcount 1 -consumers 4 -suppliers 4");
55 RunTest ("\n\nThroughput/Latency MT-safe configuration, 4 consumers 4 suppliers\n",
56 "Throughput",
57 "-burstsize 2000 -burstcount 1 -consumers 4 -suppliers 4"
58 . " -consumers_tshift 0 -suppliers_tshift 0");
60 RunTest ("\n\nConnection and disconnection time, 100 consumers 100 suppliers\n",
61 "Connect",
62 "-consumers 100 -suppliers 100 -connection_order interleaved");
64 RunTest ("\n\nConnection and disconnection time, 500 consumers 500 suppliers\n",
65 "Connect",
66 "-consumers 500 -suppliers 500 -connection_order interleaved");
68 exit $status;