Author: coke
Date: Wed May 30 14:15:54 2007
New Revision: 18694

Modified:
   trunk/   (props changed)
   trunk/languages/perl6/README
   trunk/languages/perl6/config/makefiles/root.in
   trunk/languages/perl6/t/   (props changed)

Log:
[perl6] provide mechanism to get a copy of the official test suite. For now, 
limit to those tests we have a prayer of passing


Modified: trunk/languages/perl6/README
==============================================================================
--- trunk/languages/perl6/README        (original)
+++ trunk/languages/perl6/README        Wed May 30 14:15:54 2007
@@ -94,6 +94,20 @@
     $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 ([EMAIL PROTECTED]) is the author and maintainer.

Modified: trunk/languages/perl6/config/makefiles/root.in
==============================================================================
--- trunk/languages/perl6/config/makefiles/root.in      (original)
+++ trunk/languages/perl6/config/makefiles/root.in      Wed May 30 14:15:54 2007
@@ -78,6 +78,7 @@
        @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."
@@ -94,6 +95,19 @@
 # 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 \

Reply via email to