[libvirt] [PATCH] tests: add some self-documentation to tests

Eric Blake eblake at redhat.com
Tue May 8 17:41:25 UTC 2012


Alon Levy mentioned on IRC that he tried './qemuxml2argvtest --help'
to figure out how to find which test was failing, but it didn't help.
The information is in HACKING, but it doesn't help to make the tests
also provide their own help.

* tests/testutils.c (virtTestMain): Mention debug trick.
---
 tests/testutils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/testutils.c b/tests/testutils.c
index 4e8484f..b1ba94f 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -577,7 +577,7 @@ int virtTestMain(int argc,
         progname += 2;
     if (argc > 1) {
         fprintf(stderr, "Usage: %s\n", argv[0]);
+        fputs("Use VIR_TEST_DEBUG=1 in environment for a verbose run\n", stderr);
         return EXIT_FAILURE;
     }
     fprintf(stderr, "TEST: %s\n", progname);
-- 
1.7.7.6




More information about the libvir-list mailing list