Patchwork [V19,09/10] libqblock: build: add rules for test case

login
register
mail settings
Submitter Wayne Xia
Date Feb. 16, 2013, 2:48 a.m.
Message ID <1360982897-16063-10-git-send-email-xiawenc@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/220924/
State New
Headers show

Comments

Wayne Xia - Feb. 16, 2013, 2:48 a.m.
Libtool will be used for final link, the rules do nothing if
libqblock was disabled. Temp directory was used to store image
created in test, which will be deleted in clean.

Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
---
 tests/Makefile |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

Patch

diff --git a/tests/Makefile b/tests/Makefile
index 8e7a854..79d01cf 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -140,6 +140,15 @@  qtest-obj-y = tests/libqtest.o libqemuutil.a libqemustub.a
 qtest-obj-y += tests/libi2c.o tests/libi2c-omap.o
 $(check-qtest-y): $(qtest-obj-y)
 
+#libqblock build rules
+
+$(check-libqblock-y): QEMU_INCLUDES += -I$(SRC_PATH)/tests -I$(SRC_PATH)/libqblock
+
+$(check-libqblock-y): %$(EXESUF): %.o libqblock.la
+	$(call LINK, $^)
+
+check-unit-$(CONFIG_LIBQBLOCK) += $(check-libqblock-y)
+
 .PHONY: check-help
 check-help:
 	@echo "Regression testing targets:"