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 <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Gerd Hoffmann 2011-09-01 17:42:18 +02:00 committed by Anthony Liguori
parent fffbeb750e
commit ea7f78047d

View File

@ -305,6 +305,12 @@ endif
test speed: all test speed: all
$(MAKE) -C tests $@ $(MAKE) -C tests $@
.PHONY: check
check: $(patsubst %,run-check-%,$(CHECKS))
run-check-%: %
./$<
.PHONY: TAGS .PHONY: TAGS
TAGS: TAGS:
find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags