[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V19 09/10] libqblock: build: add rules for test case
From: |
Wenchao Xia |
Subject: |
[Qemu-devel] [PATCH V19 09/10] libqblock: build: add rules for test case |
Date: |
Sat, 16 Feb 2013 10:48:16 +0800 |
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 <address@hidden>
---
tests/Makefile | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
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:"
--
1.7.1
- [Qemu-devel] [PATCH V19 00/10] libqblock qemu block layer library, Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 01/10] build: add command check-clean, Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 03/10] libqblock: build: add configure support, Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 02/10] build: hide symbols in *.lo, Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 04/10] libqblock: build: add rule for libqblock.la, Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 05/10] libqblock: build: add packaging support, Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 06/10] block: export function path_has_protocol(), Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 07/10] libqblock: libqblock API design and type defines, Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 09/10] libqblock: build: add rules for test case,
Wenchao Xia <=
- [Qemu-devel] [PATCH V19 10/10] libqblock: test: libqblock test example, Wenchao Xia, 2013/02/15
- [Qemu-devel] [PATCH V19 08/10] libqblock: libqblock API implement, Wenchao Xia, 2013/02/15
- Re: [Qemu-devel] [PATCH V19 00/10] libqblock qemu block layer library, Stefan Hajnoczi, 2013/02/21