diff options
author | bala <balanatarajan@users.noreply.github.com> | 2000-12-22 19:01:43 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2000-12-22 19:01:43 +0000 |
commit | 81c4ecae25b852005540d2346a13d5f87c018814 (patch) | |
tree | 609a0b6ec3bc2fca7c99ded3d0d6cbdd7990c0bf | |
parent | 88b0d138dbfd0aeddde12e1857a20034b54d628f (diff) | |
download | ATCD-81c4ecae25b852005540d2346a13d5f87c018814.tar.gz |
ChangeLogTag: Fri Dec 22 13:00:42 2000 Balachandran Natarajan <bala@cs.wustl.edu>
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 6 | ||||
-rwxr-xr-x | TAO/tests/BiDirectional/run_test.pl | 40 | ||||
-rwxr-xr-x | TAO/tests/BiDirectional_NestedUpcall/run_test.pl | 40 |
3 files changed, 86 insertions, 0 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index a81e6b90622..46bc61c3a1d 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Fri Dec 22 13:00:42 2000 Balachandran Natarajan <bala@cs.wustl.edu> + + * tests/BiDirectional/run_test.pl: + * tests/BiDirectional_NestedUpcall/run_test.pl: Added these perl + scripts. + Fri Dec 22 12:22:06 2000 Balachandran Natarajan <bala@cs.wustl.edu> * tests/BiDirectional_NestedUpcall: New test for BiDirectional diff --git a/TAO/tests/BiDirectional/run_test.pl b/TAO/tests/BiDirectional/run_test.pl new file mode 100755 index 00000000000..3d55511281a --- /dev/null +++ b/TAO/tests/BiDirectional/run_test.pl @@ -0,0 +1,40 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +unshift @INC, '../../../bin'; +require ACEutils; +use Cwd; + +$cwd = getcwd(); +$iorfile = "$cwd$DIR_SEPARATOR" . "test.ior"; +$status = 0; + +ACE::checkForTarget($cwd); + +unlink $iorfile; +$SV = Process::Create ($EXEPREFIX."server$EXE_EXT ", + " -o $iorfile -i 100"); + +if (ACE::waitforfile_timed ($iorfile, 15) == -1) { + print STDERR "ERROR: cannot find file <$iorfile>\n"; + $SV->Kill (); $SV->TimedWait (1); + exit 1; +} + +$CL = Process::Create ($EXEPREFIX."client$EXE_EXT ", + " -k file://$iorfile"); + +$client = $CL->TimedWait (20); +if ($client == -1) { + print STDERR "ERROR: client timedout\n"; + $CL->Kill (); $CL->TimedWait (1); + $status = 1; +} + +unlink $iorfile; + +exit $status; diff --git a/TAO/tests/BiDirectional_NestedUpcall/run_test.pl b/TAO/tests/BiDirectional_NestedUpcall/run_test.pl new file mode 100755 index 00000000000..3d55511281a --- /dev/null +++ b/TAO/tests/BiDirectional_NestedUpcall/run_test.pl @@ -0,0 +1,40 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +unshift @INC, '../../../bin'; +require ACEutils; +use Cwd; + +$cwd = getcwd(); +$iorfile = "$cwd$DIR_SEPARATOR" . "test.ior"; +$status = 0; + +ACE::checkForTarget($cwd); + +unlink $iorfile; +$SV = Process::Create ($EXEPREFIX."server$EXE_EXT ", + " -o $iorfile -i 100"); + +if (ACE::waitforfile_timed ($iorfile, 15) == -1) { + print STDERR "ERROR: cannot find file <$iorfile>\n"; + $SV->Kill (); $SV->TimedWait (1); + exit 1; +} + +$CL = Process::Create ($EXEPREFIX."client$EXE_EXT ", + " -k file://$iorfile"); + +$client = $CL->TimedWait (20); +if ($client == -1) { + print STDERR "ERROR: client timedout\n"; + $CL->Kill (); $CL->TimedWait (1); + $status = 1; +} + +unlink $iorfile; + +exit $status; |