H.Merijn Brand (via RT) wrote:

>>Attached patch fixed the "make --test" problem, reported by Tanton et al.

> no dashes I may hope?


Argh, yes of course, lack of coffee early in the morning ...


> # make test
> 
> should be the same as
> 
> # perl6 --test
> 
> If I followed the discussion correct


They are running the same tests through to different environments.

$ make test

runs perl6/immcc/assembler/parrot for each .p6 file in tests.

$ perl6 --test

runs one perl6 compiler and then for all testfiles a Test::Builder / 
Test::More and takes about half the time.


I may cite my answer to Sean WRT the same question:
<cite author="me">

The advantage of "perl6 --test" is, that you can put all options there, 
that are meaningful in this case:

-r run by imcc, w/o by parrot
-r -Rc run by imcc and make PBC
[-r ]-RP run prederef
[-r ]-Rj run JIT
[-r ]-Rg run through slow_core
-r -RPG run prederf, GC off
-C compile native and run (which is totally untested else)
add -v to see involved programs

Of cource these could be some env vars like TEST_PROG_ARGS, but setting 
this means typing a lot, and I'm lazy - I do these tests during changes 
x times a day where x might be ~30.

</cite>

Of course "make test" could run one "default" option from above. When 
imcc is reported to run code directly on all plattforms, this will be 
the default, skipping assembler and parrot alltogether.

leo

Reply via email to