diff options
author | Craig Tiller <ctiller@google.com> | 2016-01-20 09:31:15 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-01-20 09:31:15 -0800 |
commit | 5f735a64e1ab3e2851c0063e257b662169d7bad6 (patch) | |
tree | cf8404a5c6ad4444c55e82151060781224560c26 /test/core/bad_ssl | |
parent | 56c6b6ab0a84479341dec8e16930b9f85433ce8a (diff) |
Add CPU cost measurement, tune parameters, decrease default maxjobs
Diffstat (limited to 'test/core/bad_ssl')
-rwxr-xr-x | test/core/bad_ssl/gen_build_yaml.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/core/bad_ssl/gen_build_yaml.py b/test/core/bad_ssl/gen_build_yaml.py index 15189d8b79..cb6382ee69 100755 --- a/test/core/bad_ssl/gen_build_yaml.py +++ b/test/core/bad_ssl/gen_build_yaml.py @@ -35,13 +35,13 @@ import collections import yaml -TestOptions = collections.namedtuple('TestOptions', 'flaky') -default_test_options = TestOptions(False) +TestOptions = collections.namedtuple('TestOptions', 'flaky cpu_cost') +default_test_options = TestOptions(False, 1.0) # maps test names to options BAD_CLIENT_TESTS = { - 'cert': default_test_options, - 'alpn': default_test_options, + 'cert': default_test_options._replace(cpu_cost=0.1), + 'alpn': default_test_options._replace(cpu_cost=0.1), } def main(): @@ -84,6 +84,7 @@ def main(): for t in sorted(BAD_CLIENT_TESTS.keys())] + [ { 'name': 'bad_ssl_%s_test' % t, + 'cpu_cost': BAD_CLIENT_TESTS[t].cpu_cost, 'build': 'test', 'language': 'c', 'src': ['test/core/bad_ssl/bad_ssl_test.c'], |