Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBuFran <BuFran@seznam.cz>2013-07-07 15:14:37 +0400
committerPiotr Esden-Tempski <piotr@esden.net>2014-01-03 00:50:02 +0400
commit8d94bdc11cd3ea52e3c52b19c3635227fbe0f705 (patch)
tree345dbfa8509a82b6be88667c6067124076217b67 /Makefile
parent6a41e5fccb55b438916a71f9374fc8ccac99fab4 (diff)
[GENLINK] Make tests in paralell
usage: make genlinktests -j speedup: 4 times on 8-core system
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 68dc7359..843be284 100644
--- a/Makefile
+++ b/Makefile
@@ -117,11 +117,15 @@ styleclean: $(STYLECHECKFILES:=.styleclean)
LDTESTS :=$(wildcard ld/tests/*.data)
-LDTESTS :=$(LDTESTS:.data=)
-genlinktests:
- @for i in $(LDTESTS); do \
- printf " TEST\t$$i\t: "; \
- ./scripts/genlinktest.sh $$i || exit 1; \
- done
+
+genlinktests: $(LDTESTS:.data=.ldtest)
+
+%.ldtest:
+ @if ./scripts/genlinktest.sh $* >/dev/null; then\
+ printf " TEST OK : $*\n"; \
+ else \
+ printf " TEST FAIL : $*\n"; \
+ fi;
+
.PHONY: build lib $(LIB_DIRS) install doc clean generatedheaders cleanheaders stylecheck genlinktests