Change 13699 by jhi@alpha on 2001/12/15 17:14:26
Subject: [PATCH t/TEST] -bytecompile & -compile for testing perlcc
From: Michael G Schwern <[EMAIL PROTECTED]>
Date: Fri, 14 Dec 2001 20:59:42 -0500
Message-ID: <20011215015942.GF28596@blackrider>
Affected files ...
.... //depot/perl/t/TEST#67 edit
Differences ...
==== //depot/perl/t/TEST#67 (xtext) ====
Index: perl/t/TEST
--- perl/t/TEST.~1~ Sat Dec 15 10:30:05 2001
+++ perl/t/TEST Sat Dec 15 10:30:05 2001
@@ -16,6 +16,8 @@
$core = 1 if $1 eq 'core';
$verbose = 1 if $1 eq 'v';
$with_utf= 1 if $1 eq 'utf8';
+ $byte_compile = 1 if $1 eq 'bytecompile';
+ $compile = 1 if $1 eq 'compile';
if ($1 =~ /^deparse(,.+)?$/) {
$deparse = 1;
$deparse_opts = $1;
@@ -97,14 +99,20 @@
%infinite = ();
if ($deparse) {
- _testprogs('deparse', @ARGV);
-} else {
- _testprogs('perl', @ARGV);
- _testprogs('compile', @ARGV) if (-e "../testcompile");
+ _testprogs('deparse', '', @ARGV);
+}
+elsif( $compile || $byte_compile ) {
+ _testprogs('compile', '', @ARGV) if $compile;
+ _testprogs('compile', '-B', @ARGV) if $byte_compile;
+}
+else {
+ _testprogs('compile', '', @ARGV) if -e "../testcompile";
+ _testprogs('perl', '', @ARGV);
}
sub _testprogs {
$type = shift @_;
+ $args = shift;
@tests = @_;
print <<'EOT' if ($type eq 'compile');
@@ -201,7 +209,7 @@
}
else {
my $compile =
- "./perl $testswitch -I../lib ../utils/perlcc -o ".
+ "./perl $testswitch -I../lib ../utils/perlcc -I .. $args -o ".
"$test.plc $utf $test ".
" && $test.plc |";
open(RESULTS, $compile)
End of Patch.