Attached patch fixed the "make --test" problem, reported by Tanton et al.
Actually it was my fault, I forgot about the changed semantics of
running imcc and the usage in TestCompiler.pm
Thanks to Tanton to tracking this down to that point, that made my
brain work again.
Please apply,
leo
-- attachment 1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/38723/31452/e35eb2/perltest.patch
no dashes I may hope?
# make test
should be the same as
# perl6 --test
If I followed the discussion correct
> Actually it was my fault, I forgot about the changed semantics of
> running imcc and the usage in TestCompiler.pm
>
> Thanks to Tanton to tracking this down to that point, that made my
> brain work again.
>
> Please apply,
> leo
>
>
> -- attachment 1 ------------------------------------------------------
> url: http://rt.perl.org/rt2/attach/38723/31452/e35eb2/perltest.patch
>
--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
WinNT 4, Win2K pro & WinCE 2.11. Smoking perl CORE: smo...@perl.org
http://archives.develooper.com/daily...@perl.org/ per...@perl.org
send smoke reports to: smokers...@perl.org, QA: http://qa.perl.org
> Attached patch fixed the "make --test" problem, reported by Tanton et al.
> Actually it was my fault, I forgot about the changed semantics of
> running imcc and the usage in TestCompiler.pm
Looks good to me, and seems to solve the problem. Applied.
Tom
--
Tom Hughes (t...@compton.nu)
http://www.compton.nu
>>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