summaryrefslogtreecommitdiff
path: root/performance-tests
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-05 03:40:45 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-05 03:40:45 +0000
commit78ac61e62517b6703dc28de12e978e3da08c3ab2 (patch)
treeb954a734172c7b80dc13e505b6e4b6be4e38e5b2 /performance-tests
parentb7f5f272e42454cc1ec53833e0e17e6242397d31 (diff)
downloadATCD-78ac61e62517b6703dc28de12e978e3da08c3ab2.tar.gz
Sun Mar 4 19:31:16 2001 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'performance-tests')
-rwxr-xr-xperformance-tests/RPC/run_test.pl24
-rwxr-xr-xperformance-tests/TCP/run_test.pl24
-rwxr-xr-xperformance-tests/UDP/run_test.pl24
3 files changed, 39 insertions, 33 deletions
diff --git a/performance-tests/RPC/run_test.pl b/performance-tests/RPC/run_test.pl
index 4280d2cabd0..305509dc83a 100755
--- a/performance-tests/RPC/run_test.pl
+++ b/performance-tests/RPC/run_test.pl
@@ -7,26 +7,28 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
use lib '../../bin';
use PerlACE::Run_Test;
-use Cwd;
-my $SV = new PerlACE::Process ("server");
+$SV = new PerlACE::Process ("server");
+$CL = new PerlACE::Process ("client", "-i 10000 -h localhost");
+
+$status = 0;
$SV->Spawn ();
sleep 5;
-$CL = new PerlACE::Process ("client", " -i 10000 -h localhost");
-
-$CL->Spawn (60);
+$client = $CL->SpawnWaitKill (60);
-$client = $CL->WaitKill (60);
$server = $SV->WaitKill (5);
-unlink $iorfile;
+if ($server != 0) {
+ print "ERROR: server returned $server\n";
+ $status = 1;
+}
-if ($server != 0 || $client != 0) {
- print "ERROR: non-zero status returned by the server or client\n";
- exit 1;
+if ($client != 0) {
+ print "ERROR: client returned $client\n";
+ $status = 1;
}
-exit 0;
+exit $status;
diff --git a/performance-tests/TCP/run_test.pl b/performance-tests/TCP/run_test.pl
index d5049d14f59..34c4f416c39 100755
--- a/performance-tests/TCP/run_test.pl
+++ b/performance-tests/TCP/run_test.pl
@@ -7,26 +7,28 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
use lib '../../bin';
use PerlACE::Run_Test;
-use Cwd;
-my $SV = new PerlACE::Process ("tcp_test", "-s");
+$SV = new PerlACE::Process ("tcp_test", "-s");
+$CL = new PerlACE::Process ("tcp_test", "-c localhost -i 50000 -b 64");
+
+$status = 0;
$SV->Spawn ();
sleep 5;
-$CL = new PerlACE::Process ("tcp_test", " -c localhost -i 50000 -b 64");
-
-$CL->Spawn (60);
+$client = $CL->SpawnWaitKill (60);
-$client = $CL->WaitKill (60);
$server = $SV->WaitKill (5);
-unlink $iorfile;
+if ($server != 0) {
+ print "ERROR: server returned $server\n";
+ $status = 1;
+}
-if ($server != 0 || $client != 0) {
- print "ERROR: non-zero status returned by the server or client\n";
- exit 1;
+if ($client != 0) {
+ print "ERROR: client returned $client\n";
+ $status = 1;
}
-exit 0;
+exit $status;
diff --git a/performance-tests/UDP/run_test.pl b/performance-tests/UDP/run_test.pl
index 4515cd8c3d8..638b8c18c99 100755
--- a/performance-tests/UDP/run_test.pl
+++ b/performance-tests/UDP/run_test.pl
@@ -7,26 +7,28 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
use lib '../../bin';
use PerlACE::Run_Test;
-use Cwd;
-my $SV = new PerlACE::Process ("udp_test", "-r");
+$SV = new PerlACE::Process ("udp_test", "-r");
+$CL = new PerlACE::Process ("udp_test", "-t -n 10000 localhost");
+
+$status = 0;
$SV->Spawn ();
sleep 5;
-$CL = new PerlACE::Process ("udp_test", " -t -n 10000 localhost");
-
-$CL->Spawn (60);
+$client = $CL->SpawnWaitKill (60);
-$client = $CL->WaitKill (60);
$server = $SV->WaitKill (5);
-unlink $iorfile;
+if ($server != 0) {
+ print "ERROR: server returned $server\n";
+ $status = 1;
+}
-if ($server != 0 || $client != 0) {
- print "ERROR: non-zero status returned by the server or client\n";
- exit 1;
+if ($client != 0) {
+ print "ERROR: client returned $client\n";
+ $status = 1;
}
-exit 0;
+exit $status;