Received: from eggs.gnu.org ([2001:4830:134:3::10]:48893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag2Gs-0000Rt-Dc for qemu-devel@nongnu.org; Tue, 15 Mar 2016 23:37:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag2Gp-0001P7-LK for qemu-devel@nongnu.org; Tue, 15 Mar 2016 23:37:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag2Gp-0001P3-9I for qemu-devel@nongnu.org; Tue, 15 Mar 2016 23:37:15 -0400 Date: Wed, 16 Mar 2016 11:37:11 +0800 From: Fam Zheng Message-ID: <20160316033711.GB32324@ad.usersys.redhat.com> References: <1457086720-30391-1-git-send-email-famz@redhat.com> <1457086720-30391-3-git-send-email-famz@redhat.com> <87vb4tt5h6.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <87vb4tt5h6.fsf@linaro.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 02/13] Makefile: Rules for docker testing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: kwolf@redhat.com, peter.maydell@linaro.org, sw@weilnetz.de, qemu-devel@nongnu.org, stefanha@redhat.com, Paolo Bonzini , jsnow@redhat.com, david@gibson.dropbear.id.au On Fri, 03/11 15:11, Alex Benn=E9e wrote: >=20 > Fam Zheng writes: >=20 > > This adds a group of make targets to run docker tests, all are availa= ble > > in source tree without running ./configure. > > > > The usage is shown by "make docker". > > > > Besides the fixed ones, dynamic targets for building each image and > > running each test in each image are generated automatically by make, > > scanning $(SRC_PATH)/tests/docker/ files with specific patterns. > > > > Alternative to manually list particular targets (docker-run-FOO@BAR) > > set, you can control which tests/images to run by filtering variables= , > > TESTS=3D and IMAGES=3D, which are expressed in Makefile pattern synta= x, > > "foo% %bar ...". For example: > > > > $ make docker-run IMAGES=3D"ubuntu fedora" >=20 > I thought I mentioned this last time, it needs fixing in the commit > message: >=20 > 15:05 alex@zen/x86_64 [qemu.git/review/docker-v3] >make docker-run > IMAGES=3D"ubuntu fedora" > make: *** No rule to make target `docker-run'. Stop. My bad! >=20 > > > > Unfortunately, it's impossible to propagate "-j $JOBS" into make in > > containers, however since each combination is made a first class targ= et > > is the top Makefile, "make -j$N docker-run" still parallels the tests > > coarsely. > > > > Instead of providing a live version of the source tree to the docker > > container we snapshot it with git-archive. This ensure the tree is in= a > > pristine state for whatever operations the container is going to run = on > > them. > > > > Uncommitted changes known to files known by the git index will be > > included in the snapshot if there are any. > > > > Signed-off-by: Fam Zheng > > Signed-off-by: Alex Benn=E9e >=20 > fix the commit message and have a: >=20 > Reviewed-by: Alex Benn=E9e Thanks! Fam