[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [FYI] [ng] check: use few more GNU make capabilities
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [FYI] [ng] check: use few more GNU make capabilities |
Date: |
Fri, 27 Jul 2012 17:19:37 +0200 |
We can do so now that the 'parallel-tests.am' file is now
processed "almost verbatim" by Automake.
* lib/am/parallel-tests.am (check-TESTS): Here, use "ifeq" to check
whether $(AM_LAZY_CHECK) is "yes". This removes the need for ...
(am__remove_if_not_lazy_check): ... this variable, which has thus
been removed.
Signed-off-by: Stefano Lattarini <address@hidden>
---
lib/am/parallel-tests.am | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lib/am/parallel-tests.am b/lib/am/parallel-tests.am
index 6bad736..bb4ce64 100644
--- a/lib/am/parallel-tests.am
+++ b/lib/am/parallel-tests.am
@@ -421,12 +421,11 @@ am__mostlyclean_files += $(TEST_SUITE_LOG)
## Running all tests, or rechecking failures. ##
## ------------------------------------------ ##
-am__remove_if_not_lazy_check = \
- $(if $(filter yes,$(AM_LAZY_CHECK)),,$(call am.clean-cmd.f,$1))
-
check-TESTS:
- @$(call am__remove_if_not_lazy_check,$(am.test-suite.test-results))
- @$(call am__remove_if_not_lazy_check,$(am.test-suite.test-logs))
+ifneq ($(AM_LAZY_CHECK),yes)
+ @$(call am.clean-cmd.f, \
+ $(am.test-suite.test-results) $(am.test-suite.test-logs))
+endif
## We always have to remove TEST_SUITE_LOG, to ensure its rule is run
## in any case even in lazy mode: otherwise, if no test needs rerunning,
## or a prior run plus reruns all happen within the same timestamp (can
--
1.7.12.rc0
- [Automake-NG] [FYI] [ng] check: use few more GNU make capabilities,
Stefano Lattarini <=