From: Jarkko Hietaniemi Date: Sun, 18 Mar 2001 23:25:20 +0000 (+0000) Subject: Rewrite the tests section of Makefile to be less redundant X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ec861bc19fa3da942464628dd3e86e9b82994ca4;p=p5sagit%2Fp5-mst-13.2.git Rewrite the tests section of Makefile to be less redundant and to allow for more flexible test targets, many recursive make calls introduced. p4raw-id: //depot/perl@9217 --- diff --git a/Makefile.SH b/Makefile.SH index a6ec71b..416f66e 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -837,31 +837,55 @@ depend: makedepend makedepend: makedepend.SH config.sh sh ./makedepend.SH -# Cannot delegate rebuilding of t/perl to make to allow interlaced -# test and minitest -test-prep: miniperl perl preplibrary utilities $(dynamic_ext) $(nonxs_ext) $(TEST_PERL_DLL) - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../perl$(EXE_EXT) perl$(EXE_EXT)) +# Cannot delegate rebuilding of t/perl to make +# to allow interlaced test and minitest -# Second branch is for testing without a tty or controling terminal. -# See t/op/stat.t -test check: test-prep - if (true /dev/null 2>&1; then \ - cd t && $(LDLIBPTH) ./perl TEST t/rantests +_test-prep: miniperl $(PERL)$(EXE_EXT) preplibrary utilities $(dynamic_ext) $(nonxs_ext) $(TEST_PERL_DLL) + cd t && (rm -f $(PERL)$(EXE_EXT); $(LNS) ../$(PERL)$(EXE_EXT) $(PERL)$(EXE_EXT)) -utest ucheck: test-prep +test-prep: + PERL=./perl $(MAKE) _test-prep + +_test-tty: + cd t && $(LDLIBPTH) $(PERL_DEBUG) $(PERL) TEST $(UTF8) /dev/null 2>&1; then \ - cd t && $(LDLIBPTH) ./perl TEST -utf8 /dev/null 2>&1; then \ - cd t && $(LDLIBPTH) PERL_3LOG=1 ./perl.third TEST t/rantests - -utest.third ucheck.third: test-prep perl.third - if (true /dev/null 2>&1; then \ - cd t && $(LDLIBPTH) PERL_3LOG=1 ./perl.third TEST -utf8