qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Adam Kennedy <adam@phase-n.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Feature Request: command line option to validate params without starting an image
Date: Tue, 03 Jan 2006 10:37:54 +1100	[thread overview]
Message-ID: <43B9B952.5060206@phase-n.com> (raw)

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

                 reply	other threads:[~2006-01-02 23:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43B9B952.5060206@phase-n.com \
    --to=adam@phase-n.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).