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/path', 8 'recipe_engine/properties', 9 'vars', 10] 11 12 13def RunSteps(api): 14 api.vars.setup() 15 info = [ 16 api.vars.swarming_bot_id, 17 api.vars.swarming_task_id, 18 ] 19 if api.vars.is_linux: 20 assert len(info) == 2 # Make pylint happy. 21 22 23TEST_BUILDERS = [ 24 'Build-Debian9-Clang-x86_64-Release-SKNX_NO_SIMD', 25 'Housekeeper-Weekly-RecreateSKPs', 26] 27 28 29def GenTests(api): 30 for buildername in TEST_BUILDERS: 31 yield ( 32 api.test(buildername) + 33 api.properties(buildername=buildername, 34 repository='https://skia.googlesource.com/skia.git', 35 revision='abc123', 36 path_config='kitchen', 37 swarm_out_dir='[SWARM_OUT_DIR]') 38 ) 39 40 buildername = 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-All' 41 yield ( 42 api.test('win_test') + 43 api.properties(buildername=buildername, 44 repository='https://skia.googlesource.com/skia.git', 45 revision='abc123', 46 path_config='kitchen', 47 swarm_out_dir='[SWARM_OUT_DIR]', 48 patch_storage='gerrit') + 49 api.properties.tryserver( 50 buildername=buildername, 51 gerrit_project='skia', 52 gerrit_url='https://skia-review.googlesource.com/', 53 ) 54 ) 55