From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wl1FX-0005nK-4w for qemu-devel@nongnu.org; Thu, 15 May 2014 15:23:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wl1FS-0003Hg-6m for qemu-devel@nongnu.org; Thu, 15 May 2014 15:23:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wl1FR-0003Hb-UF for qemu-devel@nongnu.org; Thu, 15 May 2014 15:23:22 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4FJNKvR024589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 15 May 2014 15:23:21 -0400 Message-ID: <53751427.4090300@redhat.com> Date: Thu, 15 May 2014 13:23:19 -0600 From: Eric Blake MIME-Version: 1.0 References: <1399128428-25546-1-git-send-email-mreitz@redhat.com> <87y4y4pmja.fsf@blackfin.pond.sub.org> <5373FF47.7020809@redhat.com> <878uq3jzy7.fsf@blackfin.pond.sub.org> <5374F1CA.2010405@redhat.com> <87r43v0wsk.fsf@blackfin.pond.sub.org> In-Reply-To: <87r43v0wsk.fsf@blackfin.pond.sub.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wNLJul70M8SHG3Ueo2ShgLs7uJBcoVmaQ" Subject: Re: [Qemu-devel] [PATCH] iotests: Use configured python List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , Max Reitz Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wNLJul70M8SHG3Ueo2ShgLs7uJBcoVmaQ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/15/2014 11:35 AM, Markus Armbruster wrote: >=20 > The root stupid idea is to run stuff in the source tree. Since a sourc= e > tree can have many build trees, finding the correct build tree can't be= > automated. >=20 > If you run stuff in the build tree, there is exactly one source tree, > and putting a pointer to it in the build tree is trivial. In fact, we > already have one: try "make -pn | grep ^SRC_PATH". >=20 > I'd generate a suitable script into the build tree that sets up > necessary variables, then sources $SRC_PATH/qemu-iotests/check. In fact, this is sort of what libvirt does. We have a 'run.in' script template at the top directory, then create 'run' in the build tree (whether or not it is a VPATH tree); the run script then primes any necessary environment variables to execute commands using the build tree as its preferred location for executables, dynamic libraries, and helper files. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --wNLJul70M8SHG3Ueo2ShgLs7uJBcoVmaQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTdRQnAAoJEKeha0olJ0NqkQIH/00wb8ytO4KYz/tJP2QmnDNN XLvKQqmsJOUheqkoN9PkD7s0HlRlFMuE+yFEj3R+RhhOcCWEaOhAUjyLWp+UIICr U2gGAsJwAswRUP/TMbfx38+2Z09+2CrFT0r+4Cwn9eBWRkPvuvQcieCbZV9bGnlq xZYXsiPMOInHnAUrnxgelF3kmQ7apfK+SX8vnTTDLqQJ4gmGA9fSVK++hUzvHLLL RuASGi1y+YzynS6UbXhjQI2s/7ydKcu0Bpq+irnG0r7mke9RPC4mcKmFF0MBTdH/ KE7/3CQ3BbGrwljbRx5VehBHefURMoh1T4DQN78Q38AaPwbQIPX9TPsZnqqGrZw= =tuQe -----END PGP SIGNATURE----- --wNLJul70M8SHG3Ueo2ShgLs7uJBcoVmaQ--