2018-03-07 19:44:44 +00:00
|
|
|
# Copyright 2018 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 module for Skia Swarming SKQP testing.
|
2020-02-27 17:19:46 +00:00
|
|
|
# TODO(borenet): This recipe seems to be unused. Can we delete it?
|
2018-03-07 19:44:44 +00:00
|
|
|
|
|
|
|
DEPS = [
|
|
|
|
'flavor',
|
2018-05-04 17:46:15 +00:00
|
|
|
'recipe_engine/file',
|
|
|
|
'recipe_engine/path',
|
2018-03-07 19:44:44 +00:00
|
|
|
'recipe_engine/properties',
|
|
|
|
'run',
|
|
|
|
'vars',
|
|
|
|
]
|
|
|
|
|
|
|
|
def test_firebase_steps(api):
|
|
|
|
"""Test an APK on Firebase Testlab."""
|
|
|
|
wlist_file = api.vars.slave_dir.join('whitelist_devices.json')
|
|
|
|
apk_file = api.vars.slave_dir.join('out','devrel','skqp-universal-debug.apk')
|
|
|
|
upload_path = 'skia-stephana-test/testing/skqp-universal-debug.apk'
|
|
|
|
args = [
|
|
|
|
'run_testlab',
|
|
|
|
'--logtostderr',
|
|
|
|
'--devices', wlist_file,
|
|
|
|
'--upload_path', upload_path,
|
|
|
|
apk_file
|
|
|
|
]
|
|
|
|
api.run(api.flavor.step, 'run firebase testlab', cmd=args)
|
|
|
|
|
|
|
|
def RunSteps(api):
|
2018-05-04 17:46:15 +00:00
|
|
|
api.vars.setup()
|
|
|
|
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
|
2020-02-27 17:19:46 +00:00
|
|
|
|
|
|
|
# The app_name passed to api.flavor.setup() is used to determine which app
|
|
|
|
# to install on an attached device. We don't need to install anything so we
|
|
|
|
# pass None here.
|
|
|
|
api.flavor.setup(None)
|
2018-05-04 17:46:15 +00:00
|
|
|
|
2018-03-07 19:44:44 +00:00
|
|
|
test_firebase_steps(api)
|
|
|
|
api.run.check_failure()
|
|
|
|
|
|
|
|
def GenTests(api):
|
|
|
|
builder = 'Test-Debian9-Clang-GCE-CPU-AVX2-universal-devrel-All-Android_SKQP'
|
|
|
|
yield (
|
|
|
|
api.test(builder) +
|
|
|
|
api.properties(buildername=builder,
|
|
|
|
buildbucket_build_id='123454321',
|
|
|
|
revision='abc123',
|
|
|
|
path_config='kitchen',
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]')
|
|
|
|
)
|