diff mbox series

[2/8] device-crash-test: Add examples to script documentation

Message ID 20180309202827.12085-3-ehabkost@redhat.com
State New
Headers show
Series tests: Run device-crash-test on "make check" | expand

Commit Message

Eduardo Habkost March 9, 2018, 8:28 p.m. UTC
Add simple examples for common use cases.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 scripts/device-crash-test | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
diff mbox series

Patch

diff --git a/scripts/device-crash-test b/scripts/device-crash-test
index c6a7875357..364c779cdb 100755
--- a/scripts/device-crash-test
+++ b/scripts/device-crash-test
@@ -22,6 +22,25 @@ 
 """
 Run QEMU with all combinations of -machine and -device types,
 check for crashes and unexpected errors.
+
+Example usage:
+
+Test all QEMU binaries found in the current directory, with all
+machine-type/device combinations, but skip the combinations that are expected to
+fail:
+
+    device-crash-test
+
+Test all QEMU binaries found in the current directory, with all
+machine-type/device combinations, including the combinations that are expected
+to fail:
+
+    device-crash-test -F
+
+Test a single QEMU binary:
+
+    device-crash-test /path/to/qemu/binary
+
 """
 
 import sys