Author: particle
Date: Wed Jan  7 09:30:27 2009
New Revision: 35140

Modified:
   trunk/languages/perl6/config/makefiles/root.in

Log:
[rakudo] refactor makefile template to create spectest_checkout and 
spectest_update targets; fix logic errors

Modified: trunk/languages/perl6/config/makefiles/root.in
==============================================================================
--- trunk/languages/perl6/config/makefiles/root.in      (original)
+++ trunk/languages/perl6/config/makefiles/root.in      Wed Jan  7 09:30:27 2009
@@ -173,6 +173,8 @@
        @echo "                     This is the default."
        @echo "  perl6$(EXE):       Some want a pony, others are satisfied with 
an executable."
        @echo "  xmas:              Christmas is when Perl 6 is released. Alias 
of perl6$(EXE)."
+       @echo "  spectest_checkout  Performs svn checkout of official test 
suite."
+       @echo "  spectest_update    Performs svn update of official test suite."
        @echo ""
        @echo "Testing:"
        @echo "  test:              Run coretest and codetest."
@@ -193,6 +195,14 @@
        @echo "  help:              Print this help message."
        @echo ""
 
+
+spectest_checkout :
+       svn co http:////svn.pugscode.org//pugs//t//spec t/spec
+
+spectest_update :
+       -cd t/spec && svn up
+
+
 test    : coretest
 
 coretest: all
@@ -210,24 +220,22 @@
 HARNESS_WITH_FUDGE = $(PERL) t/harness --fudge --keep-exit-code
 HARNESS_WITH_FUDGE_JOBS = $(HARNESS_WITH_FUDGE) --jobs
 
-spectest_full: all Test.pir t/spec
-       -cd t/spec && svn up
+spectest_full: all Test.pir spectest_checkout spectest_update
        $(HARNESS_WITH_FUDGE_JOBS) t/spec
 
 # Run the spectests that we know work.
 spectest_regression: spectest
-spectest: all Test.pir t/spec t/spectest.data
-       -cd t/spec && svn up
+spectest: all Test.pir spectest_checkout spectest_update t/spectest.data
        $(HARNESS_WITH_FUDGE_JOBS) --tests-from-file=t/spectest.data
 
 fulltest: coretest spectest codetest
 
 # Run the tests in t/localtest.data
-localtest: all t/spec t/localtest.data
+localtest: all Test.pir spectest_checkout t/localtest.data
        @$(HARNESS_WITH_FUDGE_JOBS) --tests-from-file=t/localtest.data
 
 # Run the tests in t/localtest.data with a higher verbosity
-localtest_loud: all t/spec t/localtest.data
+localtest_loud: all Test.pir spectest_checkout t/localtest.data
        @$(HARNESS_WITH_FUDGE) --tests-from-file=t/localtest.data --verbosity=1
 
 # Run many tests of your choise.
@@ -242,8 +250,6 @@
 t/localtest.data:
        $(PERL) -MExtUtils::Command -e test_f $@
 
-t/spec:
-       svn co http:////svn.pugscode.org//pugs//t//spec t/spec
 
 CLEANUPS = \
   perl6.pbc \

Reply via email to