Skip to content

Commit

Permalink
[perl6] provide mechanism to get a copy of the official test suite. F…
Browse files Browse the repository at this point in the history
…or now, limit to those tests we have a prayer of passing

git-svn-id: https://svn.parrot.org/parrot/trunk@18694 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
coke committed May 30, 2007
1 parent 754b19b commit a35e0a3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions languages/perl6/README
Expand Up @@ -94,6 +94,20 @@ One can also provide the "target" option to the compiler:
$P1 = $P0($S0, 'target'=>'POST') # get OST
$P1 = $P0($S0, 'target'=>'PIR') # get PIR

=head2 Testing

To run the parrot-specific tests:

make test

To run the official test suite:

make spectest

Note that this requires svn: it exports a copy of the official tests to a
a local directory (once) and runs those tests. Right now we only run tests
we're sure we might pass.

=head1 AUTHOR

Patrick Michaud (pmichaud@pobox.com) is the author and maintainer.
Expand Down
14 changes: 14 additions & 0 deletions languages/perl6/config/makefiles/root.in
Expand Up @@ -78,6 +78,7 @@ help:
@echo "Testing:"
@echo " test: Run the test suite."
@echo " testclean: Clean up test results."
@echo " spectest: Run the official Perl 6 tests"
@echo ""
@echo "Cleaning:"
@echo " clean: Basic cleaning up."
Expand All @@ -94,6 +95,19 @@ test: all
# this target has nothing to do
testclean:

spectest: all t/spec
# XXX when tests pass, run more here.
@echo "only running sanity tests..."
$(PERL) t/harness t/spec/01-sanity/*.t

t/spec:
@echo "This step needs svn"
# XXX not needed when we get all the tests.
$(PERL) -MFile::Path -e"mkpath q{t/spec}"
# XXX when tests pass, import more here.
# // -> / for some reason... (this comment only makes sense in .in)
svn export http:////svn.pugscode.org/pugs/t/01-sanity t/spec/01-sanity

CLEANUPS = \
perl6.pbc \
perl6-orig.pbc \
Expand Down

0 comments on commit a35e0a3

Please sign in to comment.