OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import collections | 5 import collections |
6 | 6 |
7 from recipe_engine.types import freeze | 7 from recipe_engine.types import freeze |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'amp', | 10 'amp', |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 # TODO(sergiyb): This is a temporary hack to run GPU tests on tryserver | 211 # TODO(sergiyb): This is a temporary hack to run GPU tests on tryserver |
212 # only. This should be removed when we will convert chromium.gpu waterfall | 212 # only. This should be removed when we will convert chromium.gpu waterfall |
213 # to swarming and be able to replicate the tests to tryserver automatically. | 213 # to swarming and be able to replicate the tests to tryserver automatically. |
214 master = api.properties['mastername'] | 214 master = api.properties['mastername'] |
215 builder = api.properties['buildername'] | 215 builder = api.properties['buildername'] |
216 enable_gpu_tests = builder in CHROMIUM_GPU_DIMENSION_SETS.get(master, {}) | 216 enable_gpu_tests = builder in CHROMIUM_GPU_DIMENSION_SETS.get(master, {}) |
217 | 217 |
218 bot_config_object = api.chromium_tests.create_bot_config_object( | 218 bot_config_object = api.chromium_tests.create_bot_config_object( |
219 bot_config['mastername'], bot_config['buildername']) | 219 bot_config['mastername'], bot_config['buildername']) |
| 220 api.chromium_tests.set_precommit_mode() |
220 api.chromium_tests.configure_build( | 221 api.chromium_tests.configure_build( |
221 bot_config_object, override_bot_type='builder_tester') | 222 bot_config_object, override_bot_type='builder_tester') |
222 | 223 |
223 api.chromium_tests.configure_swarming('chromium', precommit=True) | 224 api.chromium_tests.configure_swarming('chromium', precommit=True) |
224 | 225 |
225 api.chromium.apply_config('trybot_flavor') | 226 api.chromium.apply_config('trybot_flavor') |
226 if enable_gpu_tests: | 227 if enable_gpu_tests: |
227 api.chromium.apply_config('archive_gpu_tests') | 228 api.chromium.apply_config('archive_gpu_tests') |
228 api.chromium.apply_config('chrome_with_codecs') | 229 api.chromium.apply_config('chrome_with_codecs') |
229 | 230 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 }, | 485 }, |
485 })) + | 486 })) + |
486 suppress_analyze() + | 487 suppress_analyze() + |
487 api.override_step_data('base_unittests (with patch)', | 488 api.override_step_data('base_unittests (with patch)', |
488 canned_test(passing=False)) + | 489 canned_test(passing=False)) + |
489 api.override_step_data('base_unittests (without patch)', | 490 api.override_step_data('base_unittests (without patch)', |
490 api.test_utils.raw_gtest_output(None, retcode=1)) | 491 api.test_utils.raw_gtest_output(None, retcode=1)) |
491 ) | 492 ) |
492 | 493 |
493 yield ( | 494 yield ( |
| 495 api.test('dynamic_gtest_with_args_on_trybot') + |
| 496 props() + |
| 497 api.platform.name('linux') + |
| 498 api.override_step_data('read test spec', api.json.output({ |
| 499 'Linux Tests': { |
| 500 'gtest_tests': [ |
| 501 { |
| 502 'test': 'base_unittests', |
| 503 'args': ['--correct-common-arg'], |
| 504 'non_precommit_args': [ |
| 505 '--SHOULD-NOT-BE-PRESENT-DURING-THE-RUN' |
| 506 ], |
| 507 'precommit_args': [ |
| 508 '--these-args-should-be-present', |
| 509 '--test-machine-name=\"${buildername}\"', |
| 510 '--build-revision=\"${got_revision}\"', |
| 511 ], |
| 512 }, |
| 513 ], |
| 514 }, |
| 515 })) + |
| 516 suppress_analyze() |
| 517 ) |
| 518 |
| 519 yield ( |
494 api.test('swarming_trigger_failure') + | 520 api.test('swarming_trigger_failure') + |
495 props() + | 521 props() + |
496 api.platform.name('linux') + | 522 api.platform.name('linux') + |
497 api.override_step_data('read test spec', api.json.output({ | 523 api.override_step_data('read test spec', api.json.output({ |
498 'Linux Tests': { | 524 'Linux Tests': { |
499 'gtest_tests': [ | 525 'gtest_tests': [ |
500 { | 526 { |
501 'test': 'base_unittests', | 527 'test': 'base_unittests', |
502 'swarming': {'can_use_on_swarming_builders': True}, | 528 'swarming': {'can_use_on_swarming_builders': True}, |
503 }, | 529 }, |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 api.test_utils.canned_test_output(passing=True)) | 1096 api.test_utils.canned_test_output(passing=True)) |
1071 ) | 1097 ) |
1072 | 1098 |
1073 yield ( | 1099 yield ( |
1074 api.test('use_v8_patch_on_blink_trybot') + | 1100 api.test('use_v8_patch_on_blink_trybot') + |
1075 props(mastername='tryserver.blink', | 1101 props(mastername='tryserver.blink', |
1076 buildername='mac_blink_rel', | 1102 buildername='mac_blink_rel', |
1077 patch_project='v8') + | 1103 patch_project='v8') + |
1078 api.platform.name('mac') | 1104 api.platform.name('mac') |
1079 ) | 1105 ) |
OLD | NEW |