summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-09-01 17:42:18 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-01 11:50:20 -0500
commitea7f78047d8ead786783972bf061d355a68e3382 (patch)
treed5f5ccf8aee6e95ae052d4e16e0ab720a8f7f993
parentfffbeb750e1d137f09b9c417ed1fb79963f6abcd (diff)
downloadfocaccia-qemu-ea7f78047d8ead786783972bf061d355a68e3382.tar.gz
focaccia-qemu-ea7f78047d8ead786783972bf061d355a68e3382.zip
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>
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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