aboutsummaryrefslogtreecommitdiff
path: root/src/test/testing_common.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-03-20 11:25:04 +1000
committerteor <teor@torproject.org>2020-03-20 11:25:04 +1000
commit4bb06cae26f060499168c7f94bc546ed2138945c (patch)
treee15663e1c1f37dcc26a08da55c2553587e1266a9 /src/test/testing_common.c
parent52b4b7e49209ba37771e3987a11c1be77f963588 (diff)
parenteb2d08a72c165ee941607c1b2cc591fb4b5e631b (diff)
downloadtor-4bb06cae26f060499168c7f94bc546ed2138945c.tar.gz
tor-4bb06cae26f060499168c7f94bc546ed2138945c.zip
Merge branch 'maint-0.4.3'
Diffstat (limited to 'src/test/testing_common.c')
-rw-r--r--src/test/testing_common.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c
index 16a62bd532..b3337f24b0 100644
--- a/src/test/testing_common.c
+++ b/src/test/testing_common.c
@@ -358,6 +358,21 @@ main(int c, const char **v)
atexit(remove_directory);
+ /* Look for TOR_SKIP_TESTCASES: a space-separated list of tests to skip. */
+ const char *skip_tests = getenv("TOR_SKIP_TESTCASES");
+ if (skip_tests) {
+ smartlist_t *skip = smartlist_new();
+ smartlist_split_string(skip, skip_tests, NULL,
+ SPLIT_IGNORE_BLANK, -1);
+ int n = 0;
+ SMARTLIST_FOREACH_BEGIN(skip, char *, cp) {
+ n += tinytest_skip(testgroups, cp);
+ tor_free(cp);
+ } SMARTLIST_FOREACH_END(cp);
+ printf("Skipping %d testcases.\n", n);
+ smartlist_free(skip);
+ }
+
int have_failed = (tinytest_main(c, v, testgroups) != 0);
free_pregenerated_keys();