| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 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 | 
|  | 3 # found in the LICENSE file. | 
|  | 4 | 
|  | 5 from recipe_engine.types import freeze | 
|  | 6 | 
|  | 7 | 
|  | 8 DEPS = [ | 
|  | 9   'archive', | 
|  | 10   '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   'webrtc', | 
|  | 21 ] | 
|  | 22 | 
|  | 23 | 
|  | 24 BUILDERS = freeze({ | 
|  | 25   'client.webrtc': { | 
|  | 26     'builders': { | 
|  | 27       'Linux64 Release (Libfuzzer)': { | 
|  | 28         'recipe_config': 'webrtc', | 
|  | 29         'chromium_config_kwargs': { | 
|  | 30           'BUILD_CONFIG': 'Release', | 
|  | 31           'TARGET_BITS': 64, | 
|  | 32         }, | 
|  | 33         'chromium_apply_config': ['webrtc_libfuzzer'], | 
|  | 34         'bot_type': 'builder', | 
|  | 35         'testing': {'platform': 'linux'}, | 
|  | 36       }, | 
|  | 37     }, | 
|  | 38   }, | 
|  | 39   'tryserver.webrtc': { | 
|  | 40     'builders': { | 
|  | 41       'linux_libfuzzer_rel': { | 
|  | 42         'recipe_config': 'webrtc', | 
|  | 43         'chromium_config_kwargs': { | 
|  | 44           'BUILD_CONFIG': 'Release', | 
|  | 45           'TARGET_BITS': 64, | 
|  | 46         }, | 
|  | 47         'chromium_apply_config': ['webrtc_libfuzzer'], | 
|  | 48         'bot_type': 'builder', | 
|  | 49         'testing': {'platform': 'linux'}, | 
|  | 50       }, | 
|  | 51     }, | 
|  | 52   }, | 
|  | 53 }) | 
|  | 54 | 
|  | 55 | 
|  | 56 def RunSteps(api): | 
|  | 57   webrtc = api.webrtc | 
|  | 58   webrtc.apply_bot_config(BUILDERS, webrtc.RECIPE_CONFIGS) | 
|  | 59 | 
|  | 60   api.webrtc.checkout() | 
|  | 61   api.chromium.runhooks() | 
|  | 62 | 
|  | 63   # checkout llvm | 
|  | 64   api.step('checkout llvm', | 
|  | 65            [api.path.sep.join(['tools', 'clang', 'scripts', 'update.py']), | 
|  | 66             '--force-local-build', | 
|  | 67             '--without-android'], | 
|  | 68            cwd=api.path['checkout'], | 
|  | 69            env={'LLVM_FORCE_HEAD_REVISION': 'YES'}) | 
|  | 70 | 
|  | 71   api.chromium.run_gn(use_goma=False) | 
|  | 72 | 
|  | 73   step_result = api.python('calculate targets', | 
|  | 74           api.path['depot_tools'].join('gn.py'), | 
|  | 75           ['--root=%s' % str(api.path['checkout']), | 
|  | 76            'refs', | 
|  | 77            str(api.chromium.output_dir), | 
|  | 78            '--all', | 
|  | 79            '--type=executable', | 
|  | 80            '--as=output', | 
|  | 81            '//webrtc/test/fuzzers:webrtc_fuzzer_main', | 
|  | 82           ], | 
|  | 83           stdout=api.raw_io.output()) | 
|  | 84 | 
|  | 85   targets = step_result.stdout.split() | 
|  | 86   api.step.active_result.presentation.logs['targets'] = targets | 
|  | 87   api.chromium.compile(targets=targets) | 
|  | 88 | 
|  | 89 | 
|  | 90 def GenTests(api): | 
|  | 91   for test in api.chromium.gen_tests_for_builders(BUILDERS): | 
|  | 92     yield (test + | 
|  | 93            api.step_data('calculate targets', | 
|  | 94                stdout=api.raw_io.output('target1 target2 target3')) | 
|  | 95            ) | 
|  | 96 | 
| OLD | NEW | 
|---|