diff options
Diffstat (limited to 'TAO/tests/Collocation_Oneway_Tests/run_test.pl')
-rwxr-xr-x | TAO/tests/Collocation_Oneway_Tests/run_test.pl | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/TAO/tests/Collocation_Oneway_Tests/run_test.pl b/TAO/tests/Collocation_Oneway_Tests/run_test.pl new file mode 100755 index 00000000000..8a9bdcfa325 --- /dev/null +++ b/TAO/tests/Collocation_Oneway_Tests/run_test.pl @@ -0,0 +1,62 @@ +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::Run_Test; + +$iorfile = PerlACE::LocalFile ("test.ior"); +unlink $iorfile; +$status = 0; + +if (PerlACE::is_vxworks_test()) { + $SV = new PerlACE::ProcessVX ("Collocated_Test"); +} +else { + $SV = new PerlACE::Process ("Collocated_Test"); +} + +print STDERR "======== Running in Default Mode \n"; +$SV->Arguments ("-o $iorfile -k file://$iorfile -m none "); +$sv = $SV->SpawnWaitKill ($PerlACE::wait_interval_for_process_creation); + +if ($sv != 0) { + print STDERR "ERROR in Collocation_Oneway_Test\n"; + $status = 1; +} +unlink $iorfile; + +print STDERR "======== Running in Default Mode \n"; +$SV->Arguments ("-o $iorfile -k file://$iorfile -m transport"); +$sv = $SV->SpawnWaitKill ($PerlACE::wait_interval_for_process_creation); + +if ($sv != 0) { + print STDERR "ERROR in Collocation_Oneway_Test\n"; + $status = 1; +} +unlink $iorfile; + +print STDERR "======== Running in Default Mode \n"; +$SV->Arguments ("-o $iorfile -k file://$iorfile -m server"); +$sv = $SV->SpawnWaitKill ($PerlACE::wait_interval_for_process_creation); + +if ($sv != 0) { + print STDERR "ERROR in Collocation_Oneway_Test\n"; + $status = 1; +} +unlink $iorfile; + +print STDERR "======== Running in Default Mode \n"; +$SV->Arguments ("-o $iorfile -k file://$iorfile -m target"); +$sv = $SV->SpawnWaitKill ($PerlACE::wait_interval_for_process_creation); + +if ($sv != 0) { + print STDERR "ERROR in Collocation_Oneway_Test\n"; + $status = 1; +} +unlink $iorfile; + +exit $status; |