From fd9f487aca0a0b419e940de844d8a621f97e97d1 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 8 May 2012 20:46:45 +0300 Subject: [PATCH] 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 Signed-off-by: Eric Blake (cherry picked from commit 75d155ec26fd2d6f4f95c3238b44309dca6caf34) --- tests/testutils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testutils.c b/tests/testutils.c index 4e8484fb68..6eb40ed6e2 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);