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

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

Issue 2293913004: Add ClangToTLinuxAsanLibfuzzer (Closed)
Patch Set: Fix typo 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 },
35 },
36 },
37 })
38
39
40 def RunSteps(api):
41 mastername = api.m.properties['mastername']
42 buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['mb'])
43
44 api.bot_update.ensure_checkout(
45 force=True, patch_root=bot_config.get('root_override'))
46
47 api.chromium.runhooks()
48 api.chromium.run_mb(mastername, buildername, use_goma=False)
49
50 api.chromium.compile(targets=['empty_fuzzer'])
51
52 config_kwargs = bot_config.get('chromium_config_kwargs', dict())
53 build_config = config_kwargs.get('BUILD_CONFIG', 'Release')
54 build_dir=api.path['slave_build'].join('src', 'out', build_config)
55
56 api.step('running empty_fuzzer', [api.path.join(build_dir, 'empty_fuzzer'),
57 '-runs=1'])
58
59
60 def GenTests(api):
61 for test in api.chromium.gen_tests_for_builders(BUILDERS):
62 yield test
63
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698