OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 DEPS = [ |
| 6 'gclient', |
| 7 'recipe_engine/path', |
| 8 'recipe_engine/properties', |
| 9 ] |
| 10 |
| 11 |
| 12 TEST_CONFIGS = [ |
| 13 'android', |
| 14 'android_bare', |
| 15 'blink', |
| 16 'blink_or_chromium', |
| 17 'boringssl', |
| 18 'build_internal', |
| 19 'build_internal_scripts_slave', |
| 20 'catapult', |
| 21 'chrome_internal', |
| 22 'chromium', |
| 23 'chromium_lkcr', |
| 24 'chromium_lkgr', |
| 25 'chromium_skia', |
| 26 'chromium_webrtc', |
| 27 'chromium_webrtc_tot', |
| 28 'crashpad', |
| 29 'custom_tabs_client', |
| 30 'dart', |
| 31 'gerrit_test_cq_normal', |
| 32 'gyp', |
| 33 'infra', |
| 34 'infradata_master_manager', |
| 35 'internal_deps', |
| 36 'ios', |
| 37 'luci_gae', |
| 38 'luci_go', |
| 39 'luci_py', |
| 40 'mojo', |
| 41 'nacl', |
| 42 'pdfium', |
| 43 'perf', |
| 44 'recipes_py', |
| 45 'show_v8_revision', |
| 46 'slave_deps', |
| 47 'v8_bleeding_edge_git', |
| 48 'v8_canary', |
| 49 'wasm_llvm', |
| 50 'webports', |
| 51 'webrtc_test_resources', |
| 52 'with_branch_heads', |
| 53 ] |
| 54 |
| 55 |
| 56 def RunSteps(api): |
| 57 for config_name in TEST_CONFIGS: |
| 58 api.gclient.make_config(config_name) |
| 59 |
| 60 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 61 soln = src_cfg.solutions.add() |
| 62 soln.name = 'src' |
| 63 soln.url = 'https://chromium.googlesource.com/chromium/src.git' |
| 64 soln.revision = api.properties.get('revision') |
| 65 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' |
| 66 api.gclient.c = src_cfg |
| 67 api.gclient.checkout() |
| 68 |
| 69 api.gclient.spec_alias = 'WebKit' |
| 70 bl_cfg = api.gclient.make_config() |
| 71 soln = bl_cfg.solutions.add() |
| 72 soln.name = 'WebKit' |
| 73 soln.url = 'svn://svn.chromium.org/blink/trunk' |
| 74 bl_cfg.revisions['third_party/WebKit'] = '123' |
| 75 |
| 76 # Use safesync url for lkgr. |
| 77 soln.safesync_url = 'https://blink-status.appspot.com/lkgr' |
| 78 |
| 79 bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision' |
| 80 api.gclient.checkout( |
| 81 gclient_config=bl_cfg, |
| 82 with_branch_heads=True, |
| 83 cwd=api.path['slave_build'].join('src', 'third_party')) |
| 84 |
| 85 api.gclient.break_locks() |
| 86 |
| 87 del api.gclient.spec_alias |
| 88 |
| 89 api.gclient.runhooks() |
| 90 |
| 91 assert not api.gclient.is_blink_mode |
| 92 |
| 93 |
| 94 def GenTests(api): |
| 95 yield api.test('basic') |
| 96 |
| 97 yield api.test('revision') + api.properties(revision='abc') |
| 98 |
| 99 yield api.test('tryserver') + api.properties.tryserver() |
OLD | NEW |