1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
7 # This is a Perl script that runs the client and all the other servers that
10 use lib
"$ENV{ACE_ROOT}/bin";
11 use PerlACE
::TestTarget
;
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");
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";
39 RunTest
("\n\nThroughput/Latency single threaded configuration\n",
41 "-ORBsvcconf $ec_st_conf -burstsize 2000 -burstcount 1");
43 RunTest
("\n\nThroughput/Latency MT-safe configuration\n",
45 "-burstsize 2000 -burstcount 1");
47 RunTest
("\n\nThroughput/Latency MT-safe configuration, 4 consumers\n",
49 "-burstsize 2000 -burstcount 1 -consumers 4");
51 RunTest
("\n\nThroughput/Latency MT-safe configuration, 4 consumers 4 suppliers\n",
53 "-burstsize 2000 -burstcount 1 -consumers 4 -suppliers 4");
55 RunTest
("\n\nThroughput/Latency MT-safe configuration, 4 consumers 4 suppliers\n",
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",
62 "-consumers 100 -suppliers 100 -connection_order interleaved");
64 RunTest
("\n\nConnection and disconnection time, 500 consumers 500 suppliers\n",
66 "-consumers 500 -suppliers 500 -connection_order interleaved");