scripts: Test script to look for -device crashes
commit23ea4f30320bbd36a5d202ee469374ec3c747286
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 26 May 2017 18:12:00 +0000 (26 15:12 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 5 Jun 2017 17:59:09 +0000 (5 14:59 -0300)
tree58639d619cad251e949b6fcb11cd509c77c412bb
parentb2b8d986753ceb20437457dfe51dd75285328373
scripts: Test script to look for -device crashes

Test code to check if we can crash QEMU using -device. It will
test all accel/machine/device combinations by default, which may
take a few hours (it's more than 90k test cases). There's a "-r"
option that makes it test a random sample of combinations.

The scripts contains a whitelist for: 1) known error messages
that make QEMU exit cleanly; 2) known QEMU crashes.

This is the behavior when the script finds a failure:

* Known clean (exitcode=1) errors generate DEBUG messages
  (hidden by default)
* Unknown clean (exitcode=1) errors will generate INFO messages
  (visible by default)
* Known crashes generate error messages, but are not fatal
  (unless --strict mode is used)
* Unknown crashes generate fatal error messages

Having an updated whitelist of known clean errors is useful to make the
script less verbose and run faster when in --quick mode, but the
whitelist doesn't need to be always up to date.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170526181200.17227-4-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/device-crash-test [new file with mode: 0755]