Ovid wrote: > I've been doing some work integrating Perl 6 into vim and now I'm trying to > figure out how to run individual Perl 6 tests. It appears that the > incantation is along the lines of: > > perl t/harness --verbosity 1 t/01-sanity/02-counter.t > > However, in digging further, I found this: > > perl t/harness --verbosity 1 t/02-test-pm/1-basic.t > > That starts off with "Statement not terminated properly at line 87, near > "(\"Hello Wo"" and goes downhill from there.
The t/02-test-pm/* tests never worked with rakudo, and should either be made to work or be ripped out. Since "making it work" hasn't been done for quite some time now, I'm all in favor of ripping them out. > In fact, in reading through the Makefile, I don't see that this gets run > unless you do 'make testtest' (added by particle back in Dec 2007). This > doesn't appear to be documented. Is it supposed to be run? Should those > Perl 6 tests be valid? No. > Also, the way that t/00-parrot/06-op-inplace.t is written forces the test > numbers to be out of sequence. This causes "make test" to fail, even though > it's merely a parse error. The Test.pm module appears to work (I've only > checked it superficially), so why not use that to make some of these tests a > bit easier to write? Are we trying to avoid loading modules while testing > core features? The 01-sanity/ tests predate module loading. The "real" testing is to run 'make spectest', which loads a bunch of tests from the pugs repository, prepares and run them. If you want to run those individually, you can simply say $ make t/spec/S02-literals/radix.t Cheers, Moritz -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/