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

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

Issue 2304313002: ClangToTLinuxASanLibfuzzer: Add 'clang_tot' to 'chromium_apply_config' (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_libfuzzer_clang_tot.expected/full_chromium_fyi_ClangToTLinuxASanLibfuzzer.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import re 5 import re
6 from recipe_engine.types import freeze 6 from recipe_engine.types import freeze
7 7
8 DEPS = [ 8 DEPS = [
9 'archive', 9 'archive',
10 'depot_tools/bot_update', 10 'depot_tools/bot_update',
11 'chromium', 11 'chromium',
12 'file', 12 'file',
13 'recipe_engine/json', 13 'recipe_engine/json',
14 'recipe_engine/path', 14 'recipe_engine/path',
15 'recipe_engine/platform', 15 'recipe_engine/platform',
16 'recipe_engine/properties', 16 'recipe_engine/properties',
17 'recipe_engine/python', 17 'recipe_engine/python',
18 'recipe_engine/raw_io', 18 'recipe_engine/raw_io',
19 'recipe_engine/step', 19 'recipe_engine/step',
20 ] 20 ]
21 21
22 22
23 BUILDERS = freeze({ 23 BUILDERS = freeze({
24 'chromium.fyi': { 24 'chromium.fyi': {
25 'builders': { 25 'builders': {
26 'ClangToTLinuxASanLibfuzzer': { 26 'ClangToTLinuxASanLibfuzzer': {
27 'chromium_config': 'chromium_clang', 27 'chromium_config': 'chromium_clang',
28 'chromium_apply_config': [ 'proprietary_codecs' ], 28 'chromium_apply_config': [ 'clang_tot', 'proprietary_codecs' ],
29 'chromium_config_kwargs': { 29 'chromium_config_kwargs': {
30 'BUILD_CONFIG': 'Release', 30 'BUILD_CONFIG': 'Release',
31 'TARGET_PLATFORM': 'linux', 31 'TARGET_PLATFORM': 'linux',
32 'TARGET_BITS': 64, 32 'TARGET_BITS': 64,
33 }, 33 },
34 }, 34 },
35 }, 35 },
36 }, 36 },
37 }) 37 })
38 38
39 39
40 def RunSteps(api): 40 def RunSteps(api):
41 mastername = api.m.properties['mastername'] 41 mastername = api.m.properties['mastername']
42 buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['mb']) 42 buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['mb'])
43 43
44 api.bot_update.ensure_checkout( 44 api.bot_update.ensure_checkout(
45 force=True, patch_root=bot_config.get('root_override')) 45 force=True, patch_root=bot_config.get('root_override'))
46 46
47 api.chromium.runhooks(env={'LLVM_FORCE_HEAD_REVISION': 'YES'}) 47 api.chromium.runhooks()
48 api.chromium.run_mb(mastername, buildername, use_goma=False) 48 api.chromium.run_mb(mastername, buildername, use_goma=False)
49 49
50 api.chromium.compile(targets=['empty_fuzzer']) 50 api.chromium.compile(targets=['empty_fuzzer'])
51 51
52 config_kwargs = bot_config.get('chromium_config_kwargs', dict()) 52 config_kwargs = bot_config.get('chromium_config_kwargs', dict())
53 build_config = config_kwargs.get('BUILD_CONFIG', 'Release') 53 build_config = config_kwargs.get('BUILD_CONFIG', 'Release')
54 build_dir=api.path['slave_build'].join('src', 'out', build_config) 54 build_dir=api.path['slave_build'].join('src', 'out', build_config)
55 55
56 api.step('running empty_fuzzer', [api.path.join(build_dir, 'empty_fuzzer'), 56 api.step('running empty_fuzzer', [api.path.join(build_dir, 'empty_fuzzer'),
57 '-runs=1']) 57 '-runs=1'])
58 58
59 59
60 def GenTests(api): 60 def GenTests(api):
61 for test in api.chromium.gen_tests_for_builders(BUILDERS): 61 for test in api.chromium.gen_tests_for_builders(BUILDERS):
62 yield test 62 yield test
63 63
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_libfuzzer_clang_tot.expected/full_chromium_fyi_ClangToTLinuxASanLibfuzzer.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698