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:
parent
fffbeb750e
commit
ea7f78047d
6
Makefile
6
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user