From 567cd7c2408671cfeb0f8f8056a11f2206a612b7 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 11 Nov 2013 12:15:50 +0100 Subject: [PATCH] Run test first for Linux, then other platforms Serious breakage will thus be detected faster. --- tests/Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 24a460c..7552fb2 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -9,18 +9,16 @@ programs-test_PROGRAMS qt qt-qmake shlibs sources_dir \ sources_in_subdirectory sources_list subdirs_first \ subdirs_first-force-subdir use_leaf_makefiles vxworks whole_tree omkize +RULES=$(shell cd ../rules; ls) all test: $(MAKE) -C .. ./wvtestrun $(MAKE) wvtest -wvtest: $(wvtest_SCRIPTS:%=run-%) +ALL_TESTS = $(foreach rule,$(RULES),$(foreach script,$(wvtest_SCRIPTS),$(rule)/$(script))) -RULES=$(shell cd ../rules; ls) +.PHONY: $(ALL_TESTS) wvtest +wvtest: $(ALL_TESTS) -run-%: % -ifeq ($(OMK_RULES),) - for i in $(RULES); do LC_ALL=C OMK_RULES=$$i ./$* || exit 1; done -else - LC_ALL=C ./$* -endif +$(ALL_TESTS): + LC_ALL=C OMK_RULES=$(patsubst %/,%,$(dir $@)) ./$(notdir $@) -- 2.39.2