2016-10-14 13:32:09 +00:00
|
|
|
# Copyright 2016 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
|
# Recipe which runs the Skia infra tests.
|
|
|
|
|
|
|
|
|
|
|
|
DEPS = [
|
2018-05-24 13:14:18 +00:00
|
|
|
'checkout',
|
|
|
|
'infra',
|
2017-05-13 02:09:38 +00:00
|
|
|
'recipe_engine/context',
|
2016-10-14 13:32:09 +00:00
|
|
|
'recipe_engine/properties',
|
|
|
|
'recipe_engine/step',
|
2017-02-02 14:02:37 +00:00
|
|
|
'vars',
|
2016-10-14 13:32:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def RunSteps(api):
|
|
|
|
api.vars.setup()
|
2018-05-24 13:14:18 +00:00
|
|
|
checkout_root = api.checkout.default_checkout_root
|
|
|
|
api.checkout.bot_update(checkout_root=checkout_root)
|
2016-10-14 13:32:09 +00:00
|
|
|
|
2016-10-20 18:38:30 +00:00
|
|
|
# Run the infra tests.
|
2017-06-14 19:25:31 +00:00
|
|
|
repo_name = api.properties['repository'].split('/')[-1]
|
|
|
|
if repo_name.endswith('.git'):
|
|
|
|
repo_name = repo_name[:-len('.git')]
|
2018-05-18 11:36:55 +00:00
|
|
|
with api.context(cwd=checkout_root.join(repo_name),
|
2017-06-14 19:25:31 +00:00
|
|
|
env=api.infra.go_env):
|
2017-04-19 14:58:22 +00:00
|
|
|
api.step('infra_tests', cmd=['make', '-C', 'infra/bots', 'test'])
|
2016-10-14 13:32:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
def GenTests(api):
|
|
|
|
yield (
|
|
|
|
api.test('infra_tests') +
|
|
|
|
api.properties(buildername='Housekeeper-PerCommit-InfraTests',
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-10-14 13:32:09 +00:00
|
|
|
revision='abc123',
|
|
|
|
path_config='kitchen',
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]')
|
|
|
|
)
|