From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR9tX-00016A-AU for qemu-devel@nongnu.org; Wed, 03 Feb 2016 21:43:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aR9tU-0002JR-1X for qemu-devel@nongnu.org; Wed, 03 Feb 2016 21:43:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR9tT-0002JL-SJ for qemu-devel@nongnu.org; Wed, 03 Feb 2016 21:43:39 -0500 Date: Thu, 4 Feb 2016 10:43:34 +0800 From: Fam Zheng Message-ID: <20160204024334.GG5187@ad.usersys.redhat.com> References: <1454510164-6278-1-git-send-email-famz@redhat.com> <20160203152425.GA9435@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160203152425.GA9435@stefanha-x1.localdomain> Subject: Re: [Qemu-devel] [RFC PATCH 0/4] tests: Introducing docker tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kwolf@redhat.com, peter.maydell@linaro.org, jsnow@redhat.com, qemu-devel@nongnu.org, sw@weilnetz.de, Paolo Bonzini , Alex =?iso-8859-1?Q?Benn=E9e?= , david@gibson.dropbear.id.au On Wed, 02/03 15:24, Stefan Hajnoczi wrote: > On Wed, Feb 03, 2016 at 10:36:00PM +0800, Fam Zheng wrote: > > This series adds a new "docker" make target family to run tests in created > > docker containers. > > > > To begin with, this can be a place to store standard env/command combinations to > > build and test QEMU. > > > > Secondly, CI usually provides "docker" capability (such as travis [1]), where > > we define standard/repeatable test environments, and run tests in them. > > However, what tests to cover is better maintained in-tree, in order to keep in > > sync with the code development. > > > > Lastly, this makes it very simple for developers to replicate such tests > > themselves. > > > > [1]: https://docs.travis-ci.com/user/docker/ > > > > > > Fam Zheng (4): > > tests: Introduce Docker based tests > > tests: Add clang docker test > > tests: Add mingw 32/64 cross compiling > > tests: Add travis container test case > > Nice, having standard build/test environments will make it easier to > reproduce issues. > > I sent several pull requests to Peter Maydell last year that ended up > failing in his build environments. Although some of those issues were > non-Linux and therefore not captured by your Docker environments, > capturing common Linux environments is a step forward. Non-Linux environments can be sorted out in this framework by pulling appropriate 3rd party images from docker hub, assuming there isn't too much copyright hassle for Mac OSX and Windows stuff. This is theoretically possible because with "--privileged -v /dev/kvm:/dev/kvm": we can spawn a kvm guest inside the container. Even without kvm, TCG may also be useful for non-x86 build env. This series also covers mingw cross compiling which might catch some windows problems. I'm not sure how different is it from natively building QEMU on Windows with MinGW. Stefan Weil? Fam