From ea7f78047d8ead786783972bf061d355a68e3382 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 1 Sep 2011 17:42:18 +0200 Subject: [PATCH] add "make check" target Add some Makefile glue so we have a simple "make check" to run the unit tests. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 5696e441cf..4f6eaa4ba6 100644 --- a/Makefile +++ b/Makefile @@ -305,6 +305,12 @@ endif test speed: all $(MAKE) -C tests $@ +.PHONY: check +check: $(patsubst %,run-check-%,$(CHECKS)) + +run-check-%: % + ./$< + .PHONY: TAGS TAGS: find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags