diff options
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl')
-rwxr-xr-x | TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl index 06a5ee135b1..43c15be216f 100755 --- a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl +++ b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl @@ -7,6 +7,7 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' use lib '../../../../../bin'; use PerlACE::Run_Test; +use File::stat; # amount of delay between running the servers @@ -15,13 +16,35 @@ $status = 0; $nsior = PerlACE::LocalFile ("ns.ior"); $testfile = PerlACE::LocalFile ("output"); -$makefile = PerlACE::LocalFile ("input"); + +# generate test stream data +$input = "test_input"; +while ( -e $input ) { + $input = $input."X"; +} +open( INPUT, "> $input" ) || die( "can't create input file: $input" ); +for($i =0; $i < 1000 ; $i++ ) { + print INPUT <<EOFINPUT; +0123456789 +0123456789 +0123456789 +0123456789 +0123456789 +0123456789 +0123456789 +0123456789 +0123456789 +0123456789 +EOFINPUT +} +close(INPUT); + unlink $nsior; $NS = new PerlACE::Process ("../../../Naming_Service/Naming_Service", "-o $nsior"); -$SV = new PerlACE::Process ("sender", "-ORBInitRef NameService=file://$nsior -s sender -r 10"); -$SV1 = new PerlACE::Process ("sender", "-ORBInitRef NameService=file://$nsior -s sender -r 1"); +$SV = new PerlACE::Process ("sender", "-ORBInitRef NameService=file://$nsior -s sender -r 10 -f $input"); +$SV1 = new PerlACE::Process ("sender", "-ORBInitRef NameService=file://$nsior -s sender -r 1 -f $input"); $RE1 = new PerlACE::Process ("receiver", "-ORBInitRef NameService=file://$nsior -s distributer -r receiver1 -f output1"); $RE2 = new PerlACE::Process ("receiver", "-ORBInitRef NameService=file://$nsior -s distributer -r receiver2 -f output2"); $DI = new PerlACE::Process ("distributer", "-ORBInitRef NameService=file://$nsior -s sender -r distributer"); @@ -231,7 +254,7 @@ if ($nserver != 0) { } unlink $nsior; -unlink $testfile; +unlink $testfile, $input; exit $status; |