1# Copyright 2017 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 6DEPS = [ 7 'recipe_engine/properties', 8 'vars', 9] 10 11 12def RunSteps(api): 13 api.vars.setup() 14 info = [ 15 api.vars.upload_dm_results, 16 api.vars.upload_perf_results, 17 api.vars.swarming_bot_id, 18 api.vars.swarming_task_id, 19 ] 20 if api.vars.is_linux: 21 assert len(info) == 4 # Make pylint happy. 22 23 24TEST_BUILDERS = [ 25 'Build-Debian9-Clang-x86_64-Release-NoDEPS', 26 'Build-Debian9-Clang-x86_64-Release-ParentRevision', 27 'Build-Debian9-Clang-x86_64-Release-SKNX_NO_SIMD', 28 'Build-Debian9-GCC-x86_64-Release-Flutter_Android', 29 'Build-Debian9-GCC-x86_64-Release-PDFium', 30 'Build-Mac-Clang-x86_64-Debug-CommandBuffer', 31 'Build-Win-Clang-x86_64-Release-Vulkan', 32 'Housekeeper-Weekly-RecreateSKPs', 33 'Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Debug-All', 34 'Perf-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-ASAN', 35 'Perf-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Release-All-CT_BENCH_1k_SKPs', 36 'Upload-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-Coverage-All', 37 'Calmbench-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All', 38 'Calmbench-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Release-All' 39] 40 41 42def GenTests(api): 43 for buildername in TEST_BUILDERS: 44 yield ( 45 api.test(buildername) + 46 api.properties(buildername=buildername, 47 repository='https://skia.googlesource.com/skia.git', 48 revision='abc123', 49 path_config='kitchen', 50 swarm_out_dir='[SWARM_OUT_DIR]') 51 ) 52 53 buildername = 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-All' 54 yield ( 55 api.test('win_test') + 56 api.properties(buildername=buildername, 57 repository='https://skia.googlesource.com/skia.git', 58 revision='abc123', 59 path_config='kitchen', 60 swarm_out_dir='[SWARM_OUT_DIR]', 61 patch_storage='gerrit') + 62 api.properties.tryserver( 63 buildername=buildername, 64 gerrit_project='skia', 65 gerrit_url='https://skia-review.googlesource.com/', 66 ) 67 ) 68