summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-09-30 22:47:41 +0000
committerIan Lynagh <igloo@earth.li>2010-09-30 22:47:41 +0000
commitadf986b4bd4a3b838b0a8809a7b28d7785dfda2f (patch)
tree62efc58fcfc89d8d1065cfaecd14454af2604d4e /Makefile
parentcfb69428a10e245bc5b64417803b637693977b24 (diff)
downloadhaskell-adf986b4bd4a3b838b0a8809a7b28d7785dfda2f.tar.gz
make test and fulltest targets in the main Makefile; fixes #4297
You can now run "make test" in the root, and the fast testsuite will be run with cleaning enabled. It will also put the summary in testsuite_summary.txt.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index de5ee8a651..93ee7bc7d1 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ endif
include mk/custom-settings.mk
# No need to update makefiles for these targets:
-REALGOALS=$(filter-out binary-dist binary-dist-prep bootstrapping-files framework-pkg clean clean_% distclean maintainer-clean show help install-docs,$(MAKECMDGOALS))
+REALGOALS=$(filter-out binary-dist binary-dist-prep bootstrapping-files framework-pkg clean clean_% distclean maintainer-clean show help install-docs test fulltest,$(MAKECMDGOALS))
# configure touches certain files even if they haven't changed. This
# can mean a lot of unnecessary recompilation after a re-configure, so
@@ -119,3 +119,12 @@ install-docs:
.NOTPARALLEL:
endif
+
+.PHONY: test
+test:
+ $(MAKE) -C testsuite/tests/ghc-regress CLEANUP=1 OUTPUT_SUMMARY=../../../testsuite_summary.txt fast
+
+.PHONY: fulltest
+fulltest:
+ $(MAKE) -C testsuite/tests/ghc-regress CLEANUP=1 OUTPUT_SUMMARY=../../../testsuite_summary.txt
+