From: Yves Orton Date: Sat, 5 Jan 2008 16:00:46 +0000 (+0000) Subject: Add a 'test-reonly' target to the standard Makefile for *nix. (Not quite as clever... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4979e2888f6553e6e237ea088f8b66b30ea28592;p=p5sagit%2Fp5-mst-13.2.git Add a 'test-reonly' target to the standard Makefile for *nix. (Not quite as clever as the one for win32, im working on it) p4raw-id: //depot/perl@32848 --- diff --git a/Makefile.SH b/Makefile.SH index 85fd928..8721d60 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -1180,7 +1180,7 @@ makedepend: makedepend.SH config.sh test.utf16 check.utf16 utest.utf16 ucheck.utf16 \ test.third check.third utest.third ucheck.third test_notty.third \ test.deparse test_notty.deparse test_harness test_harness_notty \ - minitest coretest test.taintwarn + minitest coretest test.taintwarn test-reonly # Cannot delegate rebuilding of t/perl to make # to allow interlaced test and minitest @@ -1213,9 +1213,9 @@ cleanup_unpacked_files: # see t/op/stat.t _test: if (true /dev/null 2>&1; then \ - $(MAKE) TEST_ARGS=$(TEST_ARGS) TESTFILE=$(TESTFILE) _test_tty ; \ + $(MAKE) TEST_ARGS='$(TEST_ARGS)' TESTFILE=$(TESTFILE) _test_tty ; \ else \ - $(MAKE) TEST_ARGS=$(TEST_ARGS) TESTFILE=$(TESTFILE) _test_notty ; \ + $(MAKE) TEST_ARGS='$(TEST_ARGS)' TESTFILE=$(TESTFILE) _test_notty ; \ fi @echo "Ran tests" > t/rantests @@ -1320,6 +1320,9 @@ test_harness: test_prep test_harness_notty: test_prep PERL=./perl HARNESS_NOTTY=1 $(MAKE) TESTFILE=harness _test +test-reonly: test_prep + PERL=./perl TEST_ARGS='-re \\bpat\\b \\breg \\bre\b \\bsubst \\brxcode' $(MAKE) TESTFILE=harness _test + # Handy way to run perlbug -ok without having to install and run the # installed perlbug. We don't re-run the tests here - we trust the user. # Please *don't* use this unless all tests pass.