From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvtF4-0002ES-3k for qemu-devel@nongnu.org; Tue, 23 Aug 2011 11:50:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvtF2-0006N1-VA for qemu-devel@nongnu.org; Tue, 23 Aug 2011 11:50:18 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:50101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvtF2-0006Mk-Sd for qemu-devel@nongnu.org; Tue, 23 Aug 2011 11:50:16 -0400 Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by e3.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p7NFPoPd013128 for ; Tue, 23 Aug 2011 11:25:50 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p7NFoEYg221180 for ; Tue, 23 Aug 2011 11:50:14 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p7NFoEJf018217 for ; Tue, 23 Aug 2011 11:50:14 -0400 Date: Tue, 23 Aug 2011 10:50:06 -0500 From: Ryan Harper Message-ID: <20110823155006.GF5792@us.ibm.com> References: <1312831898-18702-1-git-send-email-aliguori@us.ibm.com> <1312831898-18702-2-git-send-email-aliguori@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1312831898-18702-2-git-send-email-aliguori@us.ibm.com> Subject: Re: [Qemu-devel] [PATCH 2/2] [FYI] coverage test for Linux installs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Lucas Meneghel Rodrigues , qemu-devel@nongnu.org, Avi Kivity * Anthony Liguori [2011-08-08 14:33]: > This is a simple tool that I've been using for the past couple months to help > with day-to-day testing of changes. It may seem like it's similar to > kvm-autotest but it's actually quite different. Most noticably: > > - It's a coverage test instead of an acceptance test. Each time it runs it > uses a slightly a semi-random configuration for the guest. This means that > the more you run it, the more coverage you get. This is a good fit for > maintainer testing because you get wide testing without having to wait for > 48-hour test cycles. > > - It runs in the foreground as an unprivileged user. This means I can kick it > off in a terminal while I go off and do something else, but still keep an > eye on what's going on. > > - It works with TCG guests too and includes a TCG test case for the pseries > Power machine. > > That said, it's *not* a replacement for KVM autotest. It is not a good tool > for doing acceptance testing, like you would do to cut a new QEMU release. But > perhaps there's some behavior that could be leveraged by KVM autotest in the > future here. > > I'm not proposing this for tree inclusion right now. Just sharing a tool that > I've found to be useful. I really just want the previous patch to go in so that > I can stop carrying that patch privately. > > Right now, you need to setup an ISO directory to use the test tool. After > copy-on-read lands in the tree, I plan on making it create CoR files backing to > http so that no explicit setup is required. > --- > test-linux.c | 549 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 549 insertions(+), 0 deletions(-) > create mode 100644 test-linux.c I needed the following changes to the Makefile to build this.. diff --git a/Makefile b/Makefile index 8606849..b7df0e1 100644 --- a/Makefile +++ b/Makefile @@ -162,6 +162,7 @@ check-qlist: check-qlist.o qlist.o qint.o $(CHECK_PROG_DEPS) check-qfloat: check-qfloat.o qfloat.o $(CHECK_PROG_DEPS) check-qjson: check-qjson.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o qjson.o json-streamer.o json-lexer.o js test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(CHECK_PROG_DEPS) +test-linux: test-linux.o $(CHECK_PROG_DEPS) $(qapi-obj-y): $(GENERATED_HEADERS) qapi-dir := qapi-generated -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx ryanh@us.ibm.com