diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2011-04-05 16:18:39 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2011-04-12 15:25:24 -0700 |
commit | d12f9c04388ce98953e8cfa75c40e7e3628ff573 (patch) | |
tree | c0efd5d8d4b2165c5dc5a1d33a5aa684ed9ec93f /Makefile.am | |
parent | eca137c2b3564d30cdd5b2e1a131f610b792c783 (diff) |
Decouple the test suite from "make check"
The "check" target is run during "distcheck" after the test suite is built, so
having it run the test suite itself means that the suite has to pass before a
tarball can be distributed. Also, an unsuspecting developer attempting to
create a tarball might accidentally run the test suite against his host X
server, which is bad because some of the tests can have adverse effects.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index b8de4974..87040d2e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,18 +7,20 @@ tetexec.cfg: @rm -f xts5/$@ @cd xts5 && $(MAKE) $(AM_MAKEFLAGS) $@ -# "make check" testing. Override the test set with scenario. +# Helpers for running the test suite in-tree. Override the test set with +# scenario. scenario = -check-local: check.sh +run-tests: check.sh all @if test -z "$$DISPLAY"; then \ echo "DISPLAY not set"; \ exit 1; \ fi $(SHELL) $(builddir)/check.sh $(scenario) +.PHONY: run-tests # Helper target for testing subsets (test-Xopen, etc.) test-%: - @$(MAKE) $(AM_MAKEFLAGS) check scenario='$*' + @$(MAKE) $(AM_MAKEFLAGS) run-tests scenario='$*' if HAVE_DOCTOOLS miscmandir = $(MISC_MAN_DIR) |