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

Side by Side Diff: scripts/slave/recipes/webrtc/libfuzzer.py

Issue 1919193002: build: roll infra_paths changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: merge Created 4 years, 8 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 | Annotate | Revision Log
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.types import freeze 5 from recipe_engine.types import freeze
6 6
7 7
8 DEPS = [ 8 DEPS = [
9 'archive', 9 'archive',
10 'depot_tools/bot_update', 10 'depot_tools/bot_update',
11 'depot_tools/infra_paths',
11 'chromium', 12 'chromium',
12 'file', 13 'file',
13 'recipe_engine/json', 14 'recipe_engine/json',
14 'recipe_engine/path', 15 'recipe_engine/path',
15 'recipe_engine/platform', 16 'recipe_engine/platform',
16 'recipe_engine/properties', 17 'recipe_engine/properties',
17 'recipe_engine/python', 18 'recipe_engine/python',
18 'recipe_engine/raw_io', 19 'recipe_engine/raw_io',
19 'recipe_engine/step', 20 'recipe_engine/step',
20 'webrtc', 21 'webrtc',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 def RunSteps(api): 57 def RunSteps(api):
57 webrtc = api.webrtc 58 webrtc = api.webrtc
58 webrtc.apply_bot_config(BUILDERS, webrtc.RECIPE_CONFIGS) 59 webrtc.apply_bot_config(BUILDERS, webrtc.RECIPE_CONFIGS)
59 60
60 api.webrtc.checkout() 61 api.webrtc.checkout()
61 api.chromium.runhooks() 62 api.chromium.runhooks()
62 63
63 api.chromium.run_gn(use_goma=False) 64 api.chromium.run_gn(use_goma=False)
64 65
65 step_result = api.python('calculate targets', 66 step_result = api.python('calculate targets',
66 api.path['depot_tools'].join('gn.py'), 67 api.infra_paths['depot_tools'].join('gn.py'),
67 ['--root=%s' % str(api.path['checkout']), 68 ['--root=%s' % str(api.path['checkout']),
68 'refs', 69 'refs',
69 str(api.chromium.output_dir), 70 str(api.chromium.output_dir),
70 '--all', 71 '--all',
71 '--type=executable', 72 '--type=executable',
72 '--as=output', 73 '--as=output',
73 '//webrtc/test/fuzzers:webrtc_fuzzer_main', 74 '//webrtc/test/fuzzers:webrtc_fuzzer_main',
74 ], 75 ],
75 stdout=api.raw_io.output()) 76 stdout=api.raw_io.output())
76 77
77 targets = step_result.stdout.split() 78 targets = step_result.stdout.split()
78 api.step.active_result.presentation.logs['targets'] = targets 79 api.step.active_result.presentation.logs['targets'] = targets
79 api.chromium.compile(targets=targets) 80 api.chromium.compile(targets=targets)
80 81
81 82
82 def GenTests(api): 83 def GenTests(api):
83 for test in api.chromium.gen_tests_for_builders(BUILDERS): 84 for test in api.chromium.gen_tests_for_builders(BUILDERS):
84 yield (test + 85 yield (test +
85 api.step_data('calculate targets', 86 api.step_data('calculate targets',
86 stdout=api.raw_io.output('target1 target2 target3')) 87 stdout=api.raw_io.output('target1 target2 target3'))
87 ) 88 )
88 89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698