From patchwork Tue May 20 20:23:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Reitz X-Patchwork-Id: 350830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EFF8B1400A0 for ; Wed, 21 May 2014 06:26:29 +1000 (EST) Received: from localhost ([::1]:55313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmqcF-0004uk-ES for incoming@patchwork.ozlabs.org; Tue, 20 May 2014 16:26:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmqa1-00018u-Ui for qemu-devel@nongnu.org; Tue, 20 May 2014 16:24:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmqZv-0006Kg-Qx for qemu-devel@nongnu.org; Tue, 20 May 2014 16:24:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmqZv-0006Ka-Iu for qemu-devel@nongnu.org; Tue, 20 May 2014 16:24:03 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4KKO1RC014235 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 May 2014 16:24:01 -0400 Received: from localhost (ovpn-116-36.ams2.redhat.com [10.36.116.36]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s4KKNx1q019980 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 20 May 2014 16:24:01 -0400 From: Max Reitz To: qemu-devel@nongnu.org Date: Tue, 20 May 2014 22:23:40 +0200 Message-Id: <1400617425-14942-3-git-send-email-mreitz@redhat.com> In-Reply-To: <1400617425-14942-1-git-send-email-mreitz@redhat.com> References: <1400617425-14942-1-git-send-email-mreitz@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Kevin Wolf , Peter Maydell , Fam Zheng , Markus Armbruster , Max Reitz , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH v2 2/7] configure: Enable out-of-tree iotests 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 In order to allow out-of-tree iotests, create a symlink for the check script in the build tree. While doing so, also write configured options relevant to the iotests to common.env in the build tree; currently, this is the command to invoke Python 2. Signed-off-by: Max Reitz --- configure | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure b/configure index 605a0ec..f9d7a4d 100755 --- a/configure +++ b/configure @@ -5206,6 +5206,18 @@ if test "$docs" = "yes" ; then mkdir -p QMP fi +# set up qemu-iotests in this build directory +iotests_common_env="tests/qemu-iotests/common.env" +iotests_check="tests/qemu-iotests/check" + +echo "# Automatically generated by configure - do not modify" > "$iotests_common_env" +echo >> "$iotests_common_env" +echo "export PYTHON='$python'" >> "$iotests_common_env" + +if [ ! -e "$iotests_check" ]; then + ln -s "$source_path/$iotests_check" "$iotests_check" +fi + # Save the configure command line for later reuse. cat <config.status #!/bin/sh