summaryrefslogtreecommitdiff
path: root/ACE/TAO/tests/CDR/run_test.pl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tests/CDR/run_test.pl')
-rwxr-xr-xACE/TAO/tests/CDR/run_test.pl40
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/TAO/tests/CDR/run_test.pl b/ACE/TAO/tests/CDR/run_test.pl
new file mode 100755
index 00000000000..7acac77c3ac
--- /dev/null
+++ b/ACE/TAO/tests/CDR/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 -*-
+
+use lib "$ENV{ACE_ROOT}/bin";
+use PerlACE::TestTarget;
+
+my $target = PerlACE::TestTarget::create_target (1);
+
+$brace="\#\#\#\#\#";
+%tests = ("basic_types" => "-n 256 -l 10",
+ "tc" => "",
+ "growth" => "-l 64 -h 256 -s 4 -n 10 -q",
+ "alignment" => "",
+ "allocator" => "-q");
+$test = "";
+$args = "";
+$status = 0;
+print STDERR "\n";
+
+while (($test,$args) = each %tests) {
+ print STDERR "\n$brace $test $args test BEGUN\n";
+ $TST = $target->CreateProcess ($test, $args);
+ print STDERR "\tRUNNING $test\n";
+
+ $retval = $TST->SpawnWaitKill ($target->ProcessStartWaitInterval() + 60);
+
+ if ($retval != 0) {
+ print STDERR "ERROR $brace $test $args, exit value $retval\n";
+ $status = 1;
+ }
+ print STDERR "$brace $test FINISHED successfully\n";
+}
+
+$target->GetStderrLog();
+
+exit $status;