LanX has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I'm meditating about using a subset of Perl to define a dialect which can be equally run within the Perlinterpreter and (after translation) on Javascript-Engines.

There are many potential benefits, but at least I could deepen my knowledge about the details of inter-language differences. (I'm NOT intending to emulate one full language within the other one!!!)

What I actually need is good approach for a test-suite.

I'm thinking about running little code snippets, and comparing the (stringified or JSON) output from Spidermonkey, (and later Rhino, V8, JScript, Actionscript,...) and of course Perl5.

Where can I find such tests defining the semantics of Perl5? Preferably tagged by features (Hash,Array,Scoping,Referencing,...) and somehow ordered by dependencies (i.e. "no need to test THIS if THAT fails")

I heard about Perl6 test-suites ... but are there any for Perl5?

Cheers Rolf

Replies are listed 'Best First'.
Re: JSPerl: Testsuite for Perl5?
by moritz (Cardinal) on Jul 29, 2010 at 16:22 UTC
    Sure, Perl 5 comes with a huge test suite in the t/ directory of the perl source tree.

    It's roughly sorted by topic, and you should be fine by throwing out all things that are too esoteric for your taste :-)

    Perl 6 - links to (nearly) everything that is Perl 6.