Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #17615] [PATCH] perl6: make --test

6 views
Skip to first unread message

Leopold Toetsch

unread,
Sep 27, 2002, 2:23:03 AM9/27/02
to bugs-bi...@rt.perl.org
# New Ticket Created by Leopold Toetsch
# Please include the string: [perl #17615]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=17615 >


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

perltest.patch

H.Merijn Brand

unread,
Sep 27, 2002, 2:29:32 AM9/27/02
to perl6-i...@perl.org, Perl6 Internals
On Fri 27 Sep 2002 08:23, Leopold Toetsch (via RT) <bugs-...@netlabs.develooper.com> wrote:
> # New Ticket Created by Leopold Toetsch
> # Please include the string: [perl #17615]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=17615 >
>
>
> Attached patch fixed the "make --test" problem, reported by Tanton et al.

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


Tom Hughes

unread,
Sep 27, 2002, 3:25:33 AM9/27/02
to perl6-i...@perl.org
In message <rt-17615-38723....@bugs6.perl.org>
Leopold Toetsch <bugs-...@netlabs.develooper.com> wrote:

> 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

Leopold Toetsch

unread,
Sep 27, 2002, 3:57:27 AM9/27/02
to bugs-...@netlabs.develooper.com, P6I
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

0 new messages