| 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 'chromite', | 6 'chromite', |
| 7 'gitiles', | 7 'gitiles', |
| 8 'recipe_engine/properties', | 8 'recipe_engine/properties', |
| 9 ] | 9 ] |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 # Load the appropriate configuration based on the master. | 38 # Load the appropriate configuration based on the master. |
| 39 api.chromite.configure( | 39 api.chromite.configure( |
| 40 api.properties, | 40 api.properties, |
| 41 _MASTER_CONFIG_MAP) | 41 _MASTER_CONFIG_MAP) |
| 42 | 42 |
| 43 # Run 'cbuildbot' common recipe. | 43 # Run 'cbuildbot' common recipe. |
| 44 api.chromite.run_cbuildbot() | 44 api.chromite.run_cbuildbot() |
| 45 | 45 |
| 46 | 46 |
| 47 def GenTests(api): | 47 def GenTests(api): |
| 48 import json |
| 49 |
| 48 # | 50 # |
| 49 # master.chromiumos.chromium | 51 # master.chromiumos.chromium |
| 50 # | 52 # |
| 51 | 53 |
| 52 # Test a standard CrOS build triggered by a Chromium commit. | 54 # Test a standard CrOS build triggered by a Chromium commit. |
| 53 yield ( | 55 yield ( |
| 54 api.test('chromiumos_chromium_builder') | 56 api.test('chromiumos_chromium_builder') |
| 55 + api.properties( | 57 + api.properties( |
| 56 mastername='chromiumos.chromium', | 58 mastername='chromiumos.chromium', |
| 57 buildername='Test', | 59 buildername='Test', |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 'test', | 121 'test', |
| 120 None | 122 None |
| 121 ) | 123 ) |
| 122 ) | 124 ) |
| 123 + api.chromite.add_chromite_config( | 125 + api.chromite.add_chromite_config( |
| 124 'x86-generic-paladin', | 126 'x86-generic-paladin', |
| 125 build_type='paladin', | 127 build_type='paladin', |
| 126 ) | 128 ) |
| 127 ) | 129 ) |
| 128 | 130 |
| 131 # Test a ChromiumOS Paladin build that was configured using BuildBucket |
| 132 # instead of a manifest. |
| 133 yield ( |
| 134 api.test('chromiumos_paladin_buildbucket') |
| 135 + api.properties( |
| 136 mastername='chromiumos', |
| 137 buildername='Test', |
| 138 slavename='test', |
| 139 buildnumber='12345', |
| 140 cbb_config='auron-paladin', |
| 141 cbb_branch='master', |
| 142 cbb_master_build_id='24601', |
| 143 repository='https://chromium.googlesource.com/chromiumos/' |
| 144 'manifest-versions', |
| 145 revision=api.gitiles.make_hash('test'), |
| 146 buildbucket=json.dumps({ |
| 147 'build': { |
| 148 'id': '1337', |
| 149 }, |
| 150 }), |
| 151 ) |
| 152 + api.chromite.add_chromite_config( |
| 153 'auron-paladin', |
| 154 build_type='paladin', |
| 155 ) |
| 156 ) |
| 157 |
| 129 # | 158 # |
| 130 # [Coverage] | 159 # [Coverage] |
| 131 # | 160 # |
| 132 | 161 |
| 133 # Coverage builders for a bunch of options used in other repositories. | 162 # Coverage builders for a bunch of options used in other repositories. |
| 134 yield ( | 163 yield ( |
| 135 api.test('chromiumos_coverage') | 164 api.test('chromiumos_coverage') |
| 136 + api.properties( | 165 + api.properties( |
| 137 mastername='chromiumos.coverage', | 166 mastername='chromiumos.coverage', |
| 138 buildername='Test', | 167 buildername='Test', |
| (...skipping 29 matching lines...) Expand all Loading... |
| 168 revision='fdea0dde664e229976ddb2224328da152fba15b1', | 197 revision='fdea0dde664e229976ddb2224328da152fba15b1', |
| 169 branch='master', | 198 branch='master', |
| 170 cbb_variant='coverage', | 199 cbb_variant='coverage', |
| 171 cbb_config='x86-generic-full', | 200 cbb_config='x86-generic-full', |
| 172 cbb_branch='firmware-uboot_v2-1299.B', | 201 cbb_branch='firmware-uboot_v2-1299.B', |
| 173 cbb_debug=True, | 202 cbb_debug=True, |
| 174 cbb_disable_branch=True, | 203 cbb_disable_branch=True, |
| 175 config_repo='https://fake.googlesource.com/myconfig/repo.git', | 204 config_repo='https://fake.googlesource.com/myconfig/repo.git', |
| 176 ) | 205 ) |
| 177 ) | 206 ) |
| OLD | NEW |