On Wed, 4 Feb 2004, Steve Fink wrote:
On Feb-02, Andrew Dougherty wrote:
[EMAIL PROTECTED] 19184 languages/perl6/t/rx/call test error 1 yearsHow recently did you check? I committed a reimplementation of perl6
Keep this one open. The tests still fail.
regexes about a week ago. The above test still failed, but only due to
a parrot memory corruption bug, and I committed something else the
next day that coincidentally sidestepped the bug on my machine.
It's probably a different bug than #19184, but here's what I just got for
cd languages/perl6 make test
(This is for perl5.00503, Solaris 8/SPARC, Sun Workshop compiler)
Try cd languages/perl6 ./perl6 --force-grammar -e 1 # don't worry if it fails make test
Except I never do 'make test' because, as you noticed, it takes forever to run. Use
./perl6 --test
instead. (Or, in this case, maybe just ./perl6 --test t/rx/*.t)
The slowest part of the perl6 compiler is simply loading in the Parse::RecDescent parser. That line loads it in once and reuses it for all the tests.
I think nobody ever changed 'make test' to use it because if one test kills the process, then all remaining tests fail too. But perhaps I should have make test print at the very end:
Hey, that took forever, didn't it? Maybe you should try using
./perl6 --test
instead, as documented in [I forget where, and can't look it up right now].
Odd... I'll take a look tonight, thanks.t/rx/basic..........Read on closed filehandle <PASM> at P6C/TestCompiler.pm line 71. Use of uninitialized value at ../../lib/Parrot/Test.pm line 87. # Failed test (t/rx/basic.t at line 7) # got: 'error:imcc:main: Error reading source file t/rx/basic_1.pasm. # ' # expected: 'ok 1 # ok 2 # ok 3 # ok 4 # ok 5 # ok 6 # ok 7 # ok 8 # ok 9 # '
Oh, and the perl6 test suite is *far* from comprehensive. It's just slow.Finally, is it just me, or do these tests take a long time for everyone? Today, it took 21 minutes to run the perl6 test suite. While I appreciate the value of a comprehensive test suite, I wonder if there might be some way to speed things up a bit (apart from buying a faster machine, of course!)