summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-09-02 21:30:53 -0400
committerSteve Hay <steve.m.hay@googlemail.com>2015-10-30 20:49:32 +0000
commitb69cc3e4c71f53eca5dfd8e69b9196bf2eae719d (patch)
tree09510bd988f39a53eeac2565e487c83d5b548616
parent1c0cfe3323e84762795d27fa59c92df9276b0133 (diff)
downloadperl-b69cc3e4c71f53eca5dfd8e69b9196bf2eae719d.tar.gz
Add minitest-notty to run minitest as batch.
(cherry picked from commit 9438e34a18209b9d8c49e08487ada02053c754dd)
-rwxr-xr-xMakefile.SH17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile.SH b/Makefile.SH
index ebe816e199..b6999b2634 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1514,18 +1514,23 @@ esac
$spitshell >>$Makefile <<'!NO!SUBS!'
-# Can't depend on lib/Config.pm because that might be where miniperl
+# minitest can't depend on lib/Config.pm because that might be where miniperl
# is crashing.
-minitest: $(MINIPERL_EXE)
+minitest_prep:
-@test -f lib/Config.pm || $(MAKE) lib/Config.pm $(unidatafiles)
@echo " "
@echo "You may see some irrelevant test failures if you have been unable"
@echo "to build lib/Config.pm, or the Unicode data files."
@echo " "
- - cd t && (rm -f $(PERL_EXE); $(LNS) ../$(MINIPERL_EXE) $(PERL_EXE)) \
- && $(RUN_PERL) TEST base/*.t comp/*.t cmd/*.t run/*.t \
- io/*.t re/*.t opbasic/*.t op/*.t uni/*.t perf/*.t \
- </dev/tty
+ - cd t && (rm -f $(PERL_EXE); $(LNS) ../$(MINIPERL_EXE) $(PERL_EXE))
+
+MINITEST_TESTS = base/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t opbasic/*.t op/*.t uni/*.t perf/*.t
+
+minitest: $(MINIPERL_EXE) minitest_prep
+ - cd t && $(RUN_PERL) TEST $(MINITEST_TESTS) </dev/tty
+
+minitest-notty minitest_notty: $(MINIPERL_EXE) minitest_prep
+ - cd t && PERL_SKIP_TTY_TEST=1 $(RUN_PERL) TEST $(MINITEST_TESTS)
# Test via harness