summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Macks <dmacks@netspace.org>2016-07-24 17:28:48 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-10-24 06:12:56 -0400
commitb56ededeec547830f70ebd014a6e512140de8646 (patch)
tree38bc32a76fe583d00aa464a440aa01dfb7f2fe62
parentf14389bec91f2a09bc0c621070df5585a36bb52f (diff)
downloadglib-b56ededeec547830f70ebd014a6e512140de8646.tar.gz
Document "-s" commandline flag for running test suites
https://bugzilla.gnome.org/show_bug.cgi?id=769135
-rw-r--r--glib/gtestutils.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/glib/gtestutils.c b/glib/gtestutils.c
index 30b11f729..3275cdab0 100644
--- a/glib/gtestutils.c
+++ b/glib/gtestutils.c
@@ -1117,6 +1117,7 @@ parse_args (gint *argc_p,
* - `--verbose`: Run tests verbosely.
* - `-q`, `--quiet`: Run tests quietly.
* - `-p PATH`: Execute all tests matching the given path.
+ * - `-s PATH`: Skip all tests matching the given path.
* This can also be used to force a test to run that would otherwise
* be skipped (ie, a test whose name contains "/subprocess").
* - `-m {perf|slow|thorough|quick|undefined|no-undefined}`: Execute tests according to these test modes:
@@ -1557,8 +1558,9 @@ g_test_get_root (void)
* Runs all tests under the toplevel suite which can be retrieved
* with g_test_get_root(). Similar to g_test_run_suite(), the test
* cases to be run are filtered according to test path arguments
- * (`-p testpath`) as parsed by g_test_init(). g_test_run_suite()
- * or g_test_run() may only be called once in a program.
+ * (`-p testpath` and `-s testpath`) as parsed by g_test_init().
+ * g_test_run_suite() or g_test_run() may only be called once in a
+ * program.
*
* In general, the tests and sub-suites within each suite are run in
* the order in which they are defined. However, note that prior to
@@ -2294,9 +2296,10 @@ g_test_suite_count (GTestSuite *suite)
*
* Execute the tests within @suite and all nested #GTestSuites.
* The test suites to be executed are filtered according to
- * test path arguments (`-p testpath`) as parsed by g_test_init().
- * See the g_test_run() documentation for more information on the
- * order that tests are run in.
+ * test path arguments (`-p testpath` and `-s testpath`) as parsed by
+ * g_test_init(). See the g_test_run() documentation for more
+ * information on the order that tests are run in.
+
*
* g_test_run_suite() or g_test_run() may only be called once
* in a program.