From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcgmX-0007Hn-7f for qemu-devel@nongnu.org; Mon, 19 Dec 2011 12:13:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcgmV-0006Yu-RV for qemu-devel@nongnu.org; Mon, 19 Dec 2011 12:13:45 -0500 Received: from e32.co.us.ibm.com ([32.97.110.150]:34716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcgmV-0006Yj-Kw for qemu-devel@nongnu.org; Mon, 19 Dec 2011 12:13:43 -0500 Received: from /spool/local by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Dec 2011 10:13:42 -0700 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBJHDWLO109588 for ; Mon, 19 Dec 2011 10:13:32 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBJHDScM021631 for ; Mon, 19 Dec 2011 10:13:29 -0700 Message-ID: <4EEF70B4.3070109@us.ibm.com> Date: Mon, 19 Dec 2011 11:13:24 -0600 From: Anthony Liguori MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: "lmr@redhat.com" , Dor Laor , Stefan Hajnoczi , Gerd Hoffmann Hi, I've published a set of tests I wrote over the weekend on qemu.org. My motivations were 1) to prevent regressions like the libguestfs one and 2) to have an easier way to do development testing as I work on QEMU Object Model. Now before sending the obligatory, "What about using KVM autotest" reply, note that this is significantly different than KVM autotest and really occupies a different use-case. It has the following characteristics: 1) It builds a custom kernel and initramfs based on busybox. This is fairly important to ensure that we can run tests with no device pre-requisites. 2) Tests are scripts that are launched in the initramfs 3) The test controls exactly how QEMU is launched which allows easy testing of various QEMU options 4) Tests can interact with the monitor via QMP while the test is running 5) The tests execute very quickly, can be run stand alone, and do not require root privileges 6) They are random by nature with the ability to fix the seed in order to be used in git-bisect. I think Gerd had been looking at doing something similar with a custom initrd. I've tried to consider other architectures and had hoped that we could commit the vmlinuz and initramfs into git so that it was easy to test other architectures without having a full build environment. Unfortunately, busybox doesn't link statically with glibc and I can't see an obvious way to commit binaries while respecting the GPL since we need to pull glibc into the initramfs. I know buildroot exists specifically to deal with this but in my experience, buildroot is very unreliable and extremely heavy weight since it rebuilds gcc multiple times in order to bootstrap a ulibc environment. Anyway, the code is available at: http://git.qemu.org/qemu-test.git See the README for instructions on how to use it. Regards, Anthony Liguori