]> git.proxmox.com Git - qemu.git/commitdiff
add "make check" target
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Sep 2011 15:42:18 +0000 (17:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Nov 2011 16:50:20 +0000 (11:50 -0500)
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>
Makefile

index 5696e441cf9bbd6146f1b5acea2fe10e10623b31..4f6eaa4ba6fa0af41bb17b2dfaa7c474b02fecaa 100644 (file)
--- 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