diff options
author | teor <teor@torproject.org> | 2020-03-20 11:24:57 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-03-20 11:24:57 +1000 |
commit | eb2d08a72c165ee941607c1b2cc591fb4b5e631b (patch) | |
tree | 240206e3a39b4e6f22240c61409865ca5aff80e7 /src/test/testing_common.c | |
parent | 725efb7c98cfee4bfd610e0f3ef61b1772e53115 (diff) | |
parent | 3aa855dc6877fc281082e2cdaba242d2cc06430f (diff) | |
download | tor-eb2d08a72c165ee941607c1b2cc591fb4b5e631b.tar.gz tor-eb2d08a72c165ee941607c1b2cc591fb4b5e631b.zip |
Merge branch 'maint-0.4.2' into maint-0.4.3
Diffstat (limited to 'src/test/testing_common.c')
-rw-r--r-- | src/test/testing_common.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index 655e36e336..e9aa4112c0 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(); |