From patchwork Thu Jan 31 08:53:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 217141 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A8AAD2C0293 for ; Thu, 31 Jan 2013 20:25:50 +1100 (EST) Received: from localhost ([::1]:42914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0pwq-0004tD-Sa for incoming@patchwork.ozlabs.org; Thu, 31 Jan 2013 03:56:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0pw8-0003FR-EO for qemu-devel@nongnu.org; Thu, 31 Jan 2013 03:56:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0pw7-0003j2-6n for qemu-devel@nongnu.org; Thu, 31 Jan 2013 03:56:00 -0500 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:44725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0pw6-0003im-Jf for qemu-devel@nongnu.org; Thu, 31 Jan 2013 03:55:59 -0500 Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 31 Jan 2013 18:50:25 +1000 Received: from d23dlp02.au.ibm.com (202.81.31.213) by e23smtp02.au.ibm.com (202.81.31.208) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 31 Jan 2013 18:50:24 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 4A4DA2BB004A for ; Thu, 31 Jan 2013 19:55:55 +1100 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r0V8hocG62324954 for ; Thu, 31 Jan 2013 19:43:50 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r0V8tsQx013483 for ; Thu, 31 Jan 2013 19:55:55 +1100 Received: from RH63Wenchao (wenchaox.cn.ibm.com [9.115.122.102]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r0V8rvOU010911; Thu, 31 Jan 2013 19:55:53 +1100 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Thu, 31 Jan 2013 16:53:49 +0800 Message-Id: <1359622430-3936-10-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1359622430-3936-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1359622430-3936-1-git-send-email-xiawenc@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13013108-5490-0000-0000-000002E6D0DE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 202.81.31.144 Cc: kwolf@redhat.com, pbonzini@redhat.com, aliguori@us.ibm.com, Wenchao Xia , stefanha@gmail.com Subject: [Qemu-devel] [PATCH V17 09/10] libqblock: build: add rules for test case X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- tests/Makefile | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 884eee5..a6a421f 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -134,6 +134,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:"