diff options
author | David Robillard <d@drobilla.net> | 2018-01-04 19:27:31 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-01-04 19:27:31 -0500 |
commit | 78d68bd78725711381755a22b9b0cd238e534992 (patch) | |
tree | 7ac12441ecda822bf98807a9a0beb4eb19fdcebe /wscript | |
parent | dc2afbea4d8a117623d21f552b727c1833f7e213 (diff) | |
download | serd-78d68bd78725711381755a22b9b0cd238e534992.tar.gz serd-78d68bd78725711381755a22b9b0cd238e534992.tar.bz2 serd-78d68bd78725711381755a22b9b0cd238e534992.zip |
Only run one thru test per test to speed up test suite
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -335,6 +335,13 @@ def test_suite(ctx, base_uri, testdir, report, isyntax, osyntax, options=''): if len(tests) == 0: return + thru_flags = ['-e', '-f', '-b', '-r http://example.org/'] + thru_options = [] + for n in range(len(thru_flags) + 1): + for flags in itertools.combinations(thru_flags, n): + thru_options += [flags] + thru_options_iter = itertools.cycle(thru_options) + with autowaf.begin_tests(ctx, APPNAME, str(test_class)): for (num, test) in enumerate(tests): action_node = model[test][mf + 'action'][0] @@ -355,11 +362,8 @@ def test_suite(ctx, base_uri, testdir, report, isyntax, osyntax, options=''): True, name=str(action) + ' check', quiet=True) # Run round-trip tests - thru_flags = [options, '-b', '-e', '-f', '-r http://example.org/'] - for n in range(len(thru_flags) + 1): - for flags in itertools.combinations(thru_flags, n): - test_thru(ctx, uri, action, check_path, - ' '.join(flags), isyntax, osyntax, options, quiet=True) + test_thru(ctx, uri, action, check_path, + ' '.join(thru_options_iter.next()), isyntax, osyntax, options, quiet=True) # Write test report entry if report is not None: |