diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-02-12 21:52:37 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-02-12 21:52:37 +0000 |
commit | 5997ac1a7539427c82026c45452d6950be15c1ca (patch) | |
tree | 3c710175f73f195dac276bcab90ff6e98c52686a /TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl | |
parent | 45f0784cd826110ae6b938e367c4acf04f8782f6 (diff) | |
download | ATCD-5997ac1a7539427c82026c45452d6950be15c1ca.tar.gz |
ChangeLogTag:Sat Feb 12 13:37:48 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl')
-rwxr-xr-x | TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl b/TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl new file mode 100755 index 00000000000..bf6653e82bb --- /dev/null +++ b/TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl @@ -0,0 +1,50 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +# This is a Perl script that runs the client and all the other servers that +# are needed + +unshift @INC, '../../../../../bin'; +require Process; +require Uniqueid; + +$prefix = "." . $DIR_SEPARATOR; +$status = 0; + +print STDERR "\n\nShutdown EC with clients still attached\n"; +$T = Process::Create ($prefix . "Shutdown".$EXE_EXT); +if ($T->TimedWait (60) == -1) { + print STDERR "ERROR: Test timedout\n"; + $status = 1; + $T->Kill (); $T->TimedWait (1); +} + +print STDERR "\n\nDisconnect callbacks test\n"; +$T = Process::Create ($prefix . "Disconnect".$EXE_EXT); +if ($T->TimedWait (60) == -1) { + print STDERR "ERROR: Test timedout\n"; + $status = 1; + $T->Kill (); $T->TimedWait (1); +} + +print STDERR "\n\nMT Disconnects test\n"; +$T = Process::Create ($prefix . "MT_Disconnect".$EXE_EXT); +if ($T->TimedWait (240) == -1) { + print STDERR "ERROR: Test timedout\n"; + $status = 1; + $T->Kill (); $T->TimedWait (1); +} + +print STDERR "\n\nPush Events\n"; +$T = Process::Create ($prefix . "Push_Event".$EXE_EXT); +if ($T->TimedWait (60) == -1) { + print STDERR "ERROR: Test timedout\n"; + $status = 1; + $T->Kill (); $T->TimedWait (1); +} + +exit $status; |