about summary refs log tree commit diff
path: root/support/test-driver.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-12-31 11:01:40 +0100
committerFlorian Weimer <fweimer@redhat.com>2016-12-31 18:51:15 +0100
commitf47ae5186624e5bb3a2d2b25be742b90a1eee3cd (patch)
treeb479133044166a9bd6dfd0f225376218c1c22222 /support/test-driver.h
parent039c5a05cc905e3d48392e7ea9f85e339b7c068b (diff)
downloadglibc-f47ae5186624e5bb3a2d2b25be742b90a1eee3cd.tar.gz
glibc-f47ae5186624e5bb3a2d2b25be742b90a1eee3cd.tar.xz
glibc-f47ae5186624e5bb3a2d2b25be742b90a1eee3cd.zip
support: Implement --verbose option for test programs
Some tests can produce rather verbose tracing information,
and the --verbose option provides a standardized way to enable
such logging output.
Diffstat (limited to 'support/test-driver.h')
-rw-r--r--support/test-driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/support/test-driver.h b/support/test-driver.h
index 7787e9c4ff..f3f5c176dc 100644
--- a/support/test-driver.h
+++ b/support/test-driver.h
@@ -55,12 +55,18 @@ enum
 
 /* Options provided by the test driver.  */
 #define TEST_DEFAULT_OPTIONS                            \
+  { "verbose", no_argument, NULL, 'v' },                \
   { "direct", no_argument, NULL, OPT_DIRECT },          \
   { "test-dir", required_argument, NULL, OPT_TESTDIR }, \
 
 /* The directory the test should use for temporary files.  */
 extern const char *test_dir;
 
+/* The number of --verbose arguments specified during program
+   invocation.  This variable can be used to control the verbosity of
+   tests.  */
+extern unsigned int test_verbose;
+
 int support_test_main (int argc, char **argv, const struct test_config *);
 
 __END_DECLS