aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-05-08 20:46:45 +0300
committerEric Blake <eblake@redhat.com>2012-05-08 12:38:11 -0600
commit75d155ec26fd2d6f4f95c3238b44309dca6caf34 (patch)
tree5dfb8f7333015e3ce9d9884aa07b6cca32e04963
parentdomain_conf: add "default" to list of valid spice channels (diff)
downloadlibvirt-75d155ec26fd2d6f4f95c3238b44309dca6caf34.tar.gz
libvirt-75d155ec26fd2d6f4f95c3238b44309dca6caf34.tar.bz2
libvirt-75d155ec26fd2d6f4f95c3238b44309dca6caf34.zip
tests: add some self-documentation to tests
Alon tried './qemuxml2argvtest --help' to figure out a test failure, but it didn't help. The information is in HACKING, but it doesn't hurt to make the tests also provide their own help. Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r--tests/testutils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testutils.c b/tests/testutils.c
index 4e8484fb6..6eb40ed6e 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -577,6 +577,10 @@ int virtTestMain(int argc,
progname += 2;
if (argc > 1) {
fprintf(stderr, "Usage: %s\n", argv[0]);
+ fputs("effective environment variables:\n"
+ "VIR_TEST_VERBOSE set to show names of individual tests\n"
+ "VIR_TEST_DEBUG set to show information for debugging failures\n",
+ stderr);
return EXIT_FAILURE;
}
fprintf(stderr, "TEST: %s\n", progname);