[beast: 5/17] BUILD: Makefile.decl: add rules to run $(TAPTESTS) tests through taptool.sh
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 5/17] BUILD: Makefile.decl: add rules to run $(TAPTESTS) tests through taptool.sh
- Date: Fri, 20 Nov 2015 22:07:35 +0000 (UTC)
commit 9aa36ee054047c807de1926d304321f147d6c98a
Author: Tim Janik <timj gnu org>
Date: Tue Nov 10 14:35:32 2015 +0100
BUILD: Makefile.decl: add rules to run $(TAPTESTS) tests through taptool.sh
Signed-off-by: Tim Janik <timj gnu org>
Makefile.decl | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.decl b/Makefile.decl
index f658976..1875aae 100644
--- a/Makefile.decl
+++ b/Makefile.decl
@@ -59,13 +59,24 @@ check-am: check-before
check-local: check-after
check-local: ; @:
check-devel: ; @:
-TESTS=
# == check-devel ==
if ENABLE_DEVEL_MODE
check-after: check-devel
endif
+# == TAPTESTS ==
+# tests run through taptool.sh
+TAPTESTS =
+TAPTEST_RUNS = $(addsuffix .taprun, $(basename $(TAPTESTS)))
+.PHONY: tcheck $(TAPTEST_RUNS)
+tcheck: $(top_srcdir)/taptool.sh
+ $(MAKE) $(AM_MAKEFLAGS) --no-print-directory $(TAPTEST_RUNS)
+$(TAPTEST_RUNS): %.taprun: % # static pattern rule - also works for phony targets
+ $(Q) test "$@" = "$(@F)" || { echo "$@: test program outside CWD" >&2; exit 1; }
+ $(Q) TST="$(@:%.taprun=%)"; $(top_srcdir)/taptool.sh --test-name "$$TST" -- ./"$$TST"
+check: tcheck
+
# === slowcheck ===
# recursive rule supported by all Makefiles to run time consuming checks
.PHONY: slowcheck slowcheck-recursive slowcheck-SLOWTESTS
@@ -107,7 +118,7 @@ perf-PERFTESTS:
PERFTESTS=
# === ALLTESTS ===
-ALLTESTS = $(TESTS) $(SLOWTESTS) $(PERFTESTS) # used in noinst_PROGRAMS
+ALLTESTS = $(TESTS) $(TAPTESTS) $(SLOWTESTS) $(PERFTESTS) # used in noinst_PROGRAMS
# === report ===
.PHONY: report
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]