diff mbox

[2/2,FYI] coverage test for Linux installs

Message ID 20110823155006.GF5792@us.ibm.com
State New
Headers show

Commit Message

Ryan Harper Aug. 23, 2011, 3:50 p.m. UTC
* Anthony Liguori <aliguori@us.ibm.com> [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 mbox

Patch

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