UTEST revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!./perl
# Last change: Fri Jan 10 09:57:03 WET 1997
# This is written in a peculiar style, since we're trying to avoid
# most of the constructs we'll be testing for.
$| = 1;
$verbose = 1;
shift;
}
die "You need to run \"make test\" first to set things up.\n"
#$ENV{PERL_DESTRUCT_LEVEL} = '2';
if ($#ARGV == -1) {
}
$sharpbang = 0;
}
else {
last;
}
}
}
sub _testprogs {
$type = shift @_;
@tests = @_;
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
$ENV{PERLCC_TIMEOUT} = 120
$bad = 0;
$good = 0;
$files = 0;
$totmax = 0;
next;
}
next;
}
if (0) {
else {
}
}
else {
$_ = <SCRIPT>;
$switch = $1;
# Must protect uppercase switches with "" on command line
}
}
else {
}
}
else {
open(RESULTS, "./perl -I../lib ../utils/perlcc -Mutf8 ./$test -run -verbose dcf -log ../compilelog |") or print "can't compile.\n";
}
}
$ok = 0;
$next = 0;
print $_;
}
if (/^1\.\.([0-9]+)/) {
$max = $1;
$files += 1;
$next = 1;
$ok = 1;
}
else {
}
else {
$ok = 0;
}
}
}
}
print "ok\n";
}
else {
print "skipping test on this platform\n";
$files -= 1;
}
}
else {
$next += 1;
$_ = $test;
}
}
}
print "All tests successful.\n";
# XXX add mention of 'perlbug -ok' ?
}
else {
}
}
else {
}
else {
}
### Since not all tests were successful, you may want to run some
### of them individually and examine any diagnostic messages they
### produce. See the INSTALL document's section on "make test".
### If you are testing the compiler, then ignore this message
### and run
### ./perl harness
### in the directory ./t.
###
### Since most tests were successful, you have a good chance to
### get information with better granularity by running
### ./perl harness
### in directory ./t.
}
}