1From a860b28069785aa5bf2fa9b671287de9af5004ff Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= <bjst@enea.com>
3Date: Wed, 19 Dec 2012 17:18:27 +0100
4Subject: [PATCH] Add a new distro feature "ptest".
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Split "check-TESTS" into a buildtest and runtest target, so that they can
10be run separately.
11
12Signed-off-by: Björn Stenberg <bjst@enea.com>
13Upstream-Status: Pending
14
15---
16 lib/am/check.am | 11 +++++++++--
17 1 file changed, 9 insertions(+), 2 deletions(-)
18
19diff --git a/lib/am/check.am b/lib/am/check.am
20index e0db651..de137fa 100644
21--- a/lib/am/check.am
22+++ b/lib/am/check.am
23@@ -41,7 +41,7 @@ am__tty_colors = { \
24   fi; \
25 }
26
27-.PHONY: check-TESTS
28+.PHONY: check-TESTS buildtest-TESTS runtest-TESTS
29
30 if !%?SERIAL_TESTS%
31
32@@ -466,7 +466,14 @@ else %?SERIAL_TESTS%
33
34 ## Obsolescent serial testsuite driver.
35
36-check-TESTS: $(TESTS)
37+AM_RECURSIVE_TARGETS += buildtest runtest
38+
39+buildtest-TESTS: $(TESTS) $(check_PROGRAMS)
40+
41+check-TESTS: buildtest-TESTS
42+	$(MAKE) $(AM_MAKEFLAGS) runtest-TESTS
43+
44+runtest-TESTS:
45 	@failed=0; all=0; xfail=0; xpass=0; skip=0; \
46 	srcdir=$(srcdir); export srcdir; \
47 ## Make sure Solaris VPATH-expands all members of this list, even
48