Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Perl 6 test suite
Perl6 Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
S01-perl-5-integration Use 'Perl5' as consistent name for EVAL and use :from
S02-lexical-conventions Replace more eval-dies-ok with throws-like
S02-lists change 'parcel' to 'raw' or 'list', depending
S02-literals adjust some exceptions
S02-magicals Extra test for easier failure analysis.
S02-names-vars .perl on an itemized array should print the $
S02-names Tests to cover RT #123154.
S02-one-pass-parsing Remove any Pugs fudges
S02-packages s/lives_ok/lives-ok/g
S02-types fix typo in type name
S03-binding Replace eval-dies-ok with throws-like in S03-binding/*
S03-feeds Remove dubious test
S03-junctions actually test onearg semantics on junctions
S03-metaops make sure . doesn't try to work with metaops
S03-operators Line number info now being returned correctly
S03-sequence .perl on an itemized array should print the $
S03-smartmatch Mu ~~ '' should also be false
S04-blocks-and-statements Replace more eval-dies-ok with throws-like (S04)
S04-declarations Better check and better todo message
S04-exception-handlers Test for X::AdHoc (with throws-like) instead of using eval-dies-ok
S04-exceptions tests for some enhancements to die/fail
S04-phasers Unfudge test for RT #121531.
S04-statement-modifiers test that all statement modifiers are terminators
S04-statement-parsing s/lives_ok/lives-ok/g
S04-statements Fix test which passed for a wrong reason
S05-capture reqrite S05-capture/array-alias.t
S05-grammar Adjust test count: SKIPped tests also count!
S05-interpolation Replace remaining eval-dies-ok with throws-like
S05-mass Unfudge tests for <?same>
S05-match Tag tests covering RT #76278.
S05-metachars Tests for RT #72440.
S05-metasyntax Remove ) straggler
S05-modifier Fix 2 skip_rest deprecations
S05-nonstrings Remove any Pugs fudges
S05-substitution Replace some more eval-dies-ok with throws-like
S05-syntactic-categories Test for X::AdHoc (with throws-like) instead of using eval-dies-ok
S05-transliteration Replace some more eval-dies-ok with throws-like
S06-advanced bare return should not default to slip
S06-currying Fix test failing for the wrong reason
S06-macros Tweaks for PR#475 (new Exception code.)
S06-multi Remove tests about proto causing auto-multi-ing.
S06-operator-overloading Add another test for constant circumfix declaration.
S06-other Replace some eval-dies-ok in S06-* with throws-like
S06-parameters Unfudge now passing tests
S06-routine-modifiers Replace some eval-dies-ok in S06-* with throws-like
S06-signature Add a test for RT #121426.
S06-traits Replace more eval-dies-ok with throws-like
S07-iterators Remove all superstitious "done"s
S07-slip slip tests
S09-autovivification Fix creation of nested arrays in S09-autovivification/autoincrement.t
S09-hashes .list needed before indexing Seq
S09-subscript Update test for GLR.
S09-typed-arrays Tests for RT #123769.
S10-packages Test for X::AdHoc (with throws-like) instead of using eval-dies-ok
S11-modules add RT ticket number info to test
S12-attributes Add some more attribute smiley tests
S12-class Replace more eval-dies-ok with throws-like
S12-coercion Replace some eval-dies-ok in S12-* with throws-like
S12-construction Add test for RT#123407
S12-enums Fudge test ('todo') which passed for the wrong reason
S12-introspection Skip TODO tests that now fail fatally
S12-meta Remove all superstitious "done"s
S12-methods Remove tests about proto causing auto-multi-ing.
S12-subset Replace some eval-dies-ok in S12-* with throws-like
S12-traits Replace remaining eval-dies-ok with throws-like
S13-overloading s/postcircumfix:<( )>/CALL-ME/
S13-syntax s/lives_ok/lives-ok/g
S13-type-casting Use isa-ok instead of isa_ok
S14-roles s/postcircumfix:<( )>/CALL-ME/
S14-traits Test submethods and traits interaction.
S15-literals Replace more eval-dies-ok with throws-like (S15/S29)
S15-nfg Correct NFD; those things decompose.
S15-normalization Add generated normalization sanity tests.
S15-string-types .graphs is gone, remove tests and comments
S15-unicode-information fixed appended RT number to be within quoted string
S16-filehandles Test if .lines() really is lazy (RT #112716)
S16-io Add tests for UTF-8 BOM stripping.
S16-unfiled fixed appended RT number to be within quoted string
S17-channel fix minor typo
S17-lowlevel Unfudge lock/join test
S17-procasync fix Proc::Async tests for Microsoft Windows™
S17-promise Test covering RT #125161.
S17-scheduler catch up with push/unshift -> append/prepend
S17-supply reverse is non-flattening now
S19-command-line-options Per design specs, -E isn't in perl6.
S19-command-line Adapt to changed gist output for @*ARGS
S22-package-format s/dies_ok/dies-ok/g
S24-testing Replace last 'done' with 'done-testing'
S26-documentation Fix pod test that was backwards.
S28-named-variables s/lives_ok/lives-ok/g
S29-any Replace more eval-dies-ok with throws-like (S15/S29)
S29-context Handle s/sleep-till/sleep-until/ and test coercion
S29-conversions Z needs flat now
S29-os Add tests for RT #115390
S32-array Fudge test ('todo') for code which doesn't die, actually
S32-basics Fix thinkos and typos; Mouq++.
S32-container Also switch to current "LoL" standard.
S32-exceptions Tests for RT #119763 and RT #117417.
S32-hash Fudge test that passed for the wrong reason
S32-io Test for X::AdHoc (with throws-like) instead of using eval-dies-ok
S32-list updated reduce/produce tests for general N-ary
S32-num Replace remaining eval-dies-ok with throws-like
S32-scalar remove a couple of test fossils
S32-str Unfudge tests for final sigma semantics.
S32-temporal Add tests for RT #125686 and RT #125682 Date/DateTime overflows
S32-trig Replace some eval-dies-ok with throws-like in S32-*/*
integration .perl on an itemized array should print the $
packages catch up with push/unshift -> append/prepend
rosettacode Explicitly flatten in Sierpinski triangle
t Add more tests for fudging
.gitignore Remove any Pugs fudges
LICENSE Add Artistic License 2
README kebab case skip-rest
TODO Add a note about RTs.
fudge utilize does-ok test assertion
fudgeall Added quotes in case fudge path has spaces. (Tested on Linux and Win3…
test_summary avoid unnecessary differences in output


	The Official Perl 6 Test Suite (someday...)

This is the Official Perl 6 test suite. It evolved out of the pugs
test suite, and is now maintained in a separate repository.

Its purpose is to validate implementations that wish to be known
as a conforming Perl 6 implementation. 

Please consider this test suite to be the result
of an ongoing negotiation: since many of these tests are inspired
by seeing how the various prototype implementations are screwed up
(or even more likely, how the design of Perl 6 is screwed up), this
test suite should be considered a work in progress until one or more
of the implementations gets close to passing the entire test suite,
at which point we will freeze version 6.0 of the test suite, and any
implementation that passes it can then call itself Perl 6.

As they develop, different implementations will certainly be in
different states of readiness with respect to the test suite, so
in order for the various implementations to track their progress
independently, we've established a mechanism for "fudging" the
tests in a kind of failsoft fashion.  To pass a test officially,
an implementation must be able to run a test file unmodified, but an
implementation may (temporarily) skip tests or mark them as "todo" via
the fudging mechanism, which is implemented via the fudge preprocessor.
Individual implementations are not allowed to modify the actual test
code, but may insert line comments before each actual test (or block
of tests) that changes how those tests are to be treated for this
platform.  The fudge preprocessor pays attention only to the comments
that belong to the current platform and ignores all the rest.  If your
platform is named "humpty" then your special comment lines look like:

    #?humpty: [NUM] VERB ARGS

(The colon is optional.)

The optional NUM says how many statements or blocks to apply the
verb to.  (If not supplied, a value of 1 is assumed).  A statement
is arbitrarily defined as one or more lines starting with a test call
and ending in semicolon (with an optional comment).

VERBs include:

    skip "reason"	# skip test entirely
    eval "reason"	# eval the test because it doesn't parse yet
    try "reason"	# try the test because it throws exception
    todo "reason"	# mark "todo" because "not ok" is expected
    emit code		# insert code (such as "skip-rest();") inline

All fudged tests return an exit code of 1 by default, so the test harness
will mark it as "dubious" even if all the tests supposedly pass.

You may also negate the test:

    #!humpty: [NUM] VERB ARGS

This will apply the verb on any system that *isn't* humpty.

Sometimes environment variables distinguish syntactic or semantic
variants, so you may apply a verb depending on the presence or absence
of such a setting:


The environement variable must be uppercase.

There is also the following directive which modifies the test count of
the next construct:

    #?DOES count

The count may be an expression as long as any variables referenced in
the expression are in scope at the location fudge eventually inserts a
"skip()" call.

When applied to a subsequent sub definition, registers the sub name as
doing that many tests when called.  Note, however, that any skipping
is done at the point of the call, not within the subroutine, so the count
may not refer to any parameter of the sub.

When you run the fudge preprocessor, if it decides the test needs
fudging, it returns the new fudged filename; otherwise it returns
the original filename.  (Generally you don't run "fudge" directly,
but your test harness runs the "fudgeall" program for you; see below.)
If there is already a fudged program in the directory that is newer
than the unfudged version, fudge just returns the fudged version
without regenerating it.  If the fudged version is older, it removes
it and then decides anew whether to regenerate it based on the internal
fudge comments.

The "fudgeall" program may be called to process all the needed fudging
for a particular platform:

    fudgeall humpty */*.t */*/*.t

will use the "fudge" program to translate any fudged files to a new
file where the extension is not *.t but instead is *.humpty to indicate
the platform dependency.  It also returns the fudged list of filenames
to run, where unfudged tests are just passed through unchanged as *.t.
Each test comes through as either fudged or not, but never both.
The test harness then runs the selected test files as it normally
would (it shouldn't care whether they are named *.t or *.humpty).

In cases where the current working directory makes a difference, the tests
assume that the working directory is the root of the test suite, so that the
relative path to itself is t/spec/S\d\d-$section/$filename.
Something went wrong with that request. Please try again.