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