| # Copyright 2017 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. |
| |
| DEPS = [ |
| 'chromium', |
| 'chromium_tests', |
| 'depot_tools/tryserver', |
| 'recipe_engine/platform', |
| 'recipe_engine/properties', |
| 'test_results', |
| ] |
| |
| |
| def RunSteps(api): |
| api.chromium.set_config('chromium') |
| api.chromium_tests.set_config( |
| api.properties.get('chromium_tests_config', 'chromium')) |
| api.test_results.set_config('public_server') |
| |
| test_runner = api.chromium_tests.create_test_runner( |
| tests=[api.chromium_tests.steps.LocalGTestTest('base_unittests')], |
| serialize_tests=api.properties.get('serialize_tests')) |
| test_runner() |
| |
| |
| def GenTests(api): |
| yield ( |
| api.test('failure') + |
| api.properties( |
| mastername='test_mastername', |
| buildername='test_buildername', |
| bot_id='test_bot_id', |
| buildnumber=123) + |
| api.override_step_data('base_unittests', retcode=1) |
| ) |
| |
| yield ( |
| api.test('serialize_tests') + |
| api.properties( |
| mastername='test_mastername', |
| buildername='test_buildername', |
| bot_id='test_bot_id', |
| buildnumber=123, |
| serialize_tests=True) + |
| api.override_step_data('base_unittests', retcode=1) |
| ) |