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 DEPS = [ | 5 DEPS = [ |
6 'gclient', | 6 'gclient', |
7 'recipe_engine/path', | 7 'recipe_engine/path', |
8 'recipe_engine/properties', | 8 'recipe_engine/properties', |
9 ] | 9 ] |
10 | 10 |
11 | 11 |
12 TEST_CONFIGS = [ | 12 TEST_CONFIGS = [ |
13 'android', | 13 'android', |
14 'android_bare', | 14 'android_bare', |
15 'blink', | 15 'blink', |
16 'blink_or_chromium', | 16 'blink_or_chromium', |
17 'boringssl', | 17 'boringssl', |
18 'build_internal', | 18 'build_internal', |
19 'build_internal_scripts_slave', | 19 'build_internal_scripts_slave', |
20 'catapult', | 20 'catapult', |
21 'chrome_internal', | 21 'chrome_internal', |
22 'chromium', | 22 'chromium', |
23 'chromium_lkcr', | 23 'chromium_lkcr', |
24 'chromium_lkgr', | 24 'chromium_lkgr', |
| 25 'chromium_no_git_cache', |
25 'chromium_skia', | 26 'chromium_skia', |
26 'chromium_webrtc', | 27 'chromium_webrtc', |
27 'chromium_webrtc_tot', | 28 'chromium_webrtc_tot', |
28 'crashpad', | 29 'crashpad', |
29 'custom_tabs_client', | 30 'custom_tabs_client', |
30 'dart', | 31 'dart', |
31 'gerrit_test_cq_normal', | 32 'gerrit_test_cq_normal', |
32 'gyp', | 33 'gyp', |
33 'infra', | 34 'infra', |
34 'infradata_master_manager', | 35 'infradata_master_manager', |
(...skipping 16 matching lines...) Loading... |
51 'webports', | 52 'webports', |
52 'webrtc_test_resources', | 53 'webrtc_test_resources', |
53 'with_branch_heads', | 54 'with_branch_heads', |
54 ] | 55 ] |
55 | 56 |
56 | 57 |
57 def RunSteps(api): | 58 def RunSteps(api): |
58 for config_name in TEST_CONFIGS: | 59 for config_name in TEST_CONFIGS: |
59 api.gclient.make_config(config_name) | 60 api.gclient.make_config(config_name) |
60 | 61 |
61 src_cfg = api.gclient.make_config(GIT_MODE=True) | 62 src_cfg = api.gclient.make_config(GIT_MODE=True, CACHE_DIR='[ROOT]/git_cache') |
62 soln = src_cfg.solutions.add() | 63 soln = src_cfg.solutions.add() |
63 soln.name = 'src' | 64 soln.name = 'src' |
64 soln.url = 'https://chromium.googlesource.com/chromium/src.git' | 65 soln.url = 'https://chromium.googlesource.com/chromium/src.git' |
65 soln.revision = api.properties.get('revision') | 66 soln.revision = api.properties.get('revision') |
66 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' | 67 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' |
67 api.gclient.c = src_cfg | 68 api.gclient.c = src_cfg |
68 api.gclient.checkout() | 69 api.gclient.checkout() |
69 | 70 |
70 api.gclient.spec_alias = 'WebKit' | 71 api.gclient.spec_alias = 'WebKit' |
71 bl_cfg = api.gclient.make_config() | 72 bl_cfg = api.gclient.make_config() |
(...skipping 19 matching lines...) Loading... |
91 | 92 |
92 assert not api.gclient.is_blink_mode | 93 assert not api.gclient.is_blink_mode |
93 | 94 |
94 | 95 |
95 def GenTests(api): | 96 def GenTests(api): |
96 yield api.test('basic') | 97 yield api.test('basic') |
97 | 98 |
98 yield api.test('revision') + api.properties(revision='abc') | 99 yield api.test('revision') + api.properties(revision='abc') |
99 | 100 |
100 yield api.test('tryserver') + api.properties.tryserver() | 101 yield api.test('tryserver') + api.properties.tryserver() |
OLD | NEW |