Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: scripts/slave/recipes/boringssl.py

Issue 1932803002: Add a BoringSSL builder for OPENSSL_NO_THREADS. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from recipe_engine.recipe_api import Property 5 from recipe_engine.recipe_api import Property
6 6
7 DEPS = [ 7 DEPS = [
8 'chromium', 8 'chromium',
9 'depot_tools/bot_update', 9 'depot_tools/bot_update',
10 'file', 10 'file',
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 if _HasToken(buildername, 'noasm'): 75 if _HasToken(buildername, 'noasm'):
76 args['OPENSSL_NO_ASM'] = '1' 76 args['OPENSSL_NO_ASM'] = '1'
77 if _HasToken(buildername, 'asan'): 77 if _HasToken(buildername, 'asan'):
78 args['CMAKE_C_COMPILER'] = bot_utils.join('llvm-build', 'bin', 'clang') 78 args['CMAKE_C_COMPILER'] = bot_utils.join('llvm-build', 'bin', 'clang')
79 args['CMAKE_CXX_COMPILER'] = bot_utils.join('llvm-build', 'bin', 'clang++') 79 args['CMAKE_CXX_COMPILER'] = bot_utils.join('llvm-build', 'bin', 'clang++')
80 _AppendFlags(args, 'CMAKE_CXX_FLAGS', '-fsanitize=address') 80 _AppendFlags(args, 'CMAKE_CXX_FLAGS', '-fsanitize=address')
81 _AppendFlags(args, 'CMAKE_C_FLAGS', '-fsanitize=address') 81 _AppendFlags(args, 'CMAKE_C_FLAGS', '-fsanitize=address')
82 if _HasToken(buildername, 'small'): 82 if _HasToken(buildername, 'small'):
83 _AppendFlags(args, 'CMAKE_CXX_FLAGS', '-DOPENSSL_SMALL=1') 83 _AppendFlags(args, 'CMAKE_CXX_FLAGS', '-DOPENSSL_SMALL=1')
84 _AppendFlags(args, 'CMAKE_C_FLAGS', '-DOPENSSL_SMALL=1') 84 _AppendFlags(args, 'CMAKE_C_FLAGS', '-DOPENSSL_SMALL=1')
85 if _HasToken(buildername, "nothreads"):
86 _AppendFlags(args, 'CMAKE_CXX_FLAGS', '-DOPENSSL_NO_THREADS=1')
87 _AppendFlags(args, 'CMAKE_C_FLAGS', '-DOPENSSL_NO_THREADS=1')
85 return args 88 return args
86 89
87 90
88 def _GetTargetMSVCPrefix(buildername, bot_utils): 91 def _GetTargetMSVCPrefix(buildername, bot_utils):
89 if _HasToken(buildername, 'win32'): 92 if _HasToken(buildername, 'win32'):
90 return ['python', bot_utils.join('vs_env.py'), 'x86'] 93 return ['python', bot_utils.join('vs_env.py'), 'x86']
91 if _HasToken(buildername, 'win64'): 94 if _HasToken(buildername, 'win64'):
92 return ['python', bot_utils.join('vs_env.py'), 'x64'] 95 return ['python', bot_utils.join('vs_env.py'), 'x64']
93 return [] 96 return []
94 97
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 176
174 177
175 def GenTests(api): 178 def GenTests(api):
176 tests = [ 179 tests = [
177 ('linux', api.platform('linux', 64)), 180 ('linux', api.platform('linux', 64)),
178 ('linux_shared', api.platform('linux', 64)), 181 ('linux_shared', api.platform('linux', 64)),
179 ('linux32', api.platform('linux', 64)), 182 ('linux32', api.platform('linux', 64)),
180 ('linux_noasm_asan', api.platform('linux', 64)), 183 ('linux_noasm_asan', api.platform('linux', 64)),
181 ('linux32_noasm_asan', api.platform('linux', 64)), 184 ('linux32_noasm_asan', api.platform('linux', 64)),
182 ('linux_small', api.platform('linux', 64)), 185 ('linux_small', api.platform('linux', 64)),
186 ('linux_nothreads', api.platform('linux', 64)),
183 ('mac', api.platform('mac', 64)), 187 ('mac', api.platform('mac', 64)),
184 ('mac_small', api.platform('mac', 64)), 188 ('mac_small', api.platform('mac', 64)),
185 ('win32', api.platform('win', 64)), 189 ('win32', api.platform('win', 64)),
186 ('win32_small', api.platform('win', 64)), 190 ('win32_small', api.platform('win', 64)),
187 ('win64', api.platform('win', 64)), 191 ('win64', api.platform('win', 64)),
188 ('win64_small', api.platform('win', 64)), 192 ('win64_small', api.platform('win', 64)),
189 ] 193 ]
190 for (buildername, host_platform) in tests: 194 for (buildername, host_platform) in tests:
191 yield ( 195 yield (
192 api.test(buildername) + 196 api.test(buildername) +
(...skipping 20 matching lines...) Expand all
213 yield ( 217 yield (
214 api.test('failed_ssl_tests') + 218 api.test('failed_ssl_tests') +
215 api.platform('linux', 64) + 219 api.platform('linux', 64) +
216 api.properties.generic(mastername='client.boringssl', buildername='linux', 220 api.properties.generic(mastername='client.boringssl', buildername='linux',
217 slavename='slavename') + 221 slavename='slavename') +
218 api.override_step_data('unit tests', 222 api.override_step_data('unit tests',
219 api.test_utils.canned_test_output(True)) + 223 api.test_utils.canned_test_output(True)) +
220 api.override_step_data('ssl tests', 224 api.override_step_data('ssl tests',
221 api.test_utils.canned_test_output(False)) 225 api.test_utils.canned_test_output(False))
222 ) 226 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698