From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EtZJe-0003aS-PR for qemu-devel@nongnu.org; Mon, 02 Jan 2006 18:42:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtZJc-0003Zg-Nq for qemu-devel@nongnu.org; Mon, 02 Jan 2006 18:42:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtZJc-0003Zd-JU for qemu-devel@nongnu.org; Mon, 02 Jan 2006 18:42:12 -0500 Received: from [202.90.48.2] (helo=starfury.linearg.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EtZKk-0001ST-9Z for qemu-devel@nongnu.org; Mon, 02 Jan 2006 18:43:22 -0500 Received: from localhost (localhost [127.0.0.1]) by starfury.linearg.com (Postfix) with ESMTP id 0AD6D800066F for ; Tue, 3 Jan 2006 10:40:23 +1100 (EST) Received: from starfury.linearg.com ([127.0.0.1]) by localhost (starfury [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08241-13 for ; Tue, 3 Jan 2006 10:40:22 +1100 (EST) Received: from [172.31.0.178] (hq-nat.linearg.net [202.90.48.125]) by starfury.linearg.com (Postfix) with ESMTP id 75A568016CA3 for ; Tue, 3 Jan 2006 10:40:22 +1100 (EST) Message-ID: <43B9B952.5060206@phase-n.com> Date: Tue, 03 Jan 2006 10:37:54 +1100 From: Adam Kennedy MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Feature Request: command line option to validate params without starting an image Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I'm currently writing a large scale image-based testing system. (for background info) http://ali.as/pita/ Part of this involves a wrapper for Qemu to launch images with generated options. However currently I have no way way to write unit tests for this code that I can determine. What would be extremely useful would be a command line option I could add to the beginning (or end) of the options ... say -z to pick something at random. This would cause qemu to do all it's normal pre-startup procedures (parse the options, preconfigure and precheck as much stuff as possible) and then bail out before allocating the memory or starting the system (while somehow confirming the params were ok). I'm not sure how much work this would be, but it would be extraordinarily useful when writing wrappers, since the unit tests would typically try to validate 10-20 different combinations of options, and booting an image and shutting it down 20 times would be extremely harsh. Thanks Adam Kennedy