From patchwork Wed Feb 27 03:10:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 223489 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 6A18D2C0085 for ; Wed, 27 Feb 2013 14:23:44 +1100 (EST) Received: from localhost ([::1]:34001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAXSL-0000qp-F7 for incoming@patchwork.ozlabs.org; Tue, 26 Feb 2013 22:13:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAXRU-0008FN-UU for qemu-devel@nongnu.org; Tue, 26 Feb 2013 22:12:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAXRR-0006Mm-1B for qemu-devel@nongnu.org; Tue, 26 Feb 2013 22:12:28 -0500 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:40588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAXRQ-0006MQ-Ee for qemu-devel@nongnu.org; Tue, 26 Feb 2013 22:12:24 -0500 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 27 Feb 2013 08:38:42 +0530 Received: from d28dlp01.in.ibm.com (9.184.220.126) by e28smtp08.in.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 27 Feb 2013 08:38:40 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id 99CDDE004C for ; Wed, 27 Feb 2013 08:43:25 +0530 (IST) Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r1R3CFQr32309296 for ; Wed, 27 Feb 2013 08:42:15 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r1R3CGki025719 for ; Wed, 27 Feb 2013 14:12:16 +1100 Received: from RH63Wenchao (wenchaox.cn.ibm.com [9.115.122.44]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r1R3A7fe018808; Wed, 27 Feb 2013 14:12:14 +1100 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Wed, 27 Feb 2013 11:10:17 +0800 Message-Id: <1361934618-32026-10-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1361934618-32026-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1361934618-32026-1-git-send-email-xiawenc@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13022703-2000-0000-0000-00000B193395 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 122.248.162.8 Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@gmail.com, pbonzini@redhat.com, Wenchao Xia Subject: [Qemu-devel] [PATCH V20 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 dce37df..a71443a 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -144,6 +144,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:"