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

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

Issue 2293913004: Add ClangToTLinuxAsanLibfuzzer (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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import re
6 from recipe_engine.types import freeze
7
8 DEPS = [
9 'archive',
10 'depot_tools/bot_update',
11 'chromium',
12 'file',
13 'recipe_engine/json',
14 'recipe_engine/path',
15 'recipe_engine/platform',
16 'recipe_engine/properties',
17 'recipe_engine/python',
18 'recipe_engine/raw_io',
19 'recipe_engine/step',
20 ]
21
22
23 BUILDERS = freeze({
24 'chromium.fyi': {
25 'builders': {
26 'ClangToTLinuxAsanLibfuzzer': {
27 'chromium_config': 'chromium_clang',
28 'chromium_apply_config': [ 'proprietary_codecs' ],
29 'chromium_config_kwargs': {
30 'BUILD_CONFIG': 'Release',
31 'TARGET_PLATFORM': 'linux',
32 'TARGET_BITS': 64,
33 },
34 'upload_bucket': 'chromium-browser-libfuzzer',
35 'upload_directory': 'asan',
36 },
37 },
38 },
39 })
40
41
42 def RunSteps(api):
43 mastername = api.m.properties['mastername']
44 buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['mb'])
45
46 api.bot_update.ensure_checkout(
47 force=True, patch_root=bot_config.get('root_override'))
48
49 api.chromium.runhooks()
50 api.chromium.run_mb(mastername, buildername, use_goma=False)
Nico 2016/08/31 16:13:03 This looks like a pretty standard config – why can
51
52 api.chromium.compile(targets=['empty_fuzzer'])
53
54 config_kwargs = bot_config.get('chromium_config_kwargs', dict())
55 build_config = config_kwargs.get('BUILD_CONFIG', 'Release')
56 build_dir=api.path['slave_build'].join('src', 'out', build_config)
57
58 api.step('running empty_fuzzer', [api.path.join(build_dir, 'empty_fuzzer'),
59 '-runs=1'])
60
61
62 def GenTests(api):
63 for test in api.chromium.gen_tests_for_builders(BUILDERS):
64 yield test
65
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698