diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-06-18 12:01:01 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2018-06-18 19:36:26 +0000 |
commit | d88c5df0cf7a7f72dd88b6c888180b064c73ac0c (patch) | |
tree | 5500a0c755db9d1e6fcdba7eaf35104d9b677c14 /test/suite_unittests.py | |
parent | f1c410275f94116f729d4302a9d121192e65d1b1 (diff) |
Test+CMake: Make our test grouping more fine-grained.
Split our tests by suite_*.group_* instead of suite_*. There are quite a
few dfilter tests and this should make them more parallelizable.
Change-Id: I52371409618cda70dc99811e8de1fb1ad9d9a3b6
Reviewed-on: https://code.wireshark.org/review/28329
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'test/suite_unittests.py')
-rw-r--r-- | test/suite_unittests.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/suite_unittests.py b/test/suite_unittests.py index 6d896d6b17..1233807a10 100644 --- a/test/suite_unittests.py +++ b/test/suite_unittests.py @@ -55,21 +55,21 @@ class case_unittests(subprocesstest.SubprocessTestCase): def test_unit_ctest_coverage(self): '''Make sure CTest runs all of our tests.''' with open(os.path.join(config.this_dir, '..', 'CMakeLists.txt')) as cml_fd: - suite_re = re.compile('set *\( *_test_suite_list') + group_re = re.compile('set *\( *_test_group_list') in_list = False - cml_suites = [] + cml_groups = [] for cml_line in cml_fd: - if suite_re.search(cml_line): + if group_re.search(cml_line): in_list = True continue if in_list: if ')' in cml_line: break - cml_suites.append(cml_line.strip()) - cml_suites.sort() - if not config.all_suites == cml_suites: - diff = '\n'.join(list(difflib.unified_diff(config.all_suites, cml_suites, 'all test suites', 'CMakeLists.txt test suites'))) - self.fail("CMakeLists.txt doesn't test all available suites:\n" + diff) + cml_groups.append(cml_line.strip()) + cml_groups.sort() + if not config.all_groups == cml_groups: + diff = '\n'.join(list(difflib.unified_diff(config.all_groups, cml_groups, 'all test groups', 'CMakeLists.txt test groups'))) + self.fail("CMakeLists.txt doesn't test all available groups:\n" + diff) class Proto: |