OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'bot_update', | 6 'bot_update', |
7 'gclient', | 7 'gclient', |
8 'recipe_engine/path', | 8 'recipe_engine/path', |
9 'recipe_engine/properties', | 9 'recipe_engine/properties', |
10 ] | 10 ] |
(...skipping 25 matching lines...) Expand all Loading... |
36 with_branch_heads=with_branch_heads, | 36 with_branch_heads=with_branch_heads, |
37 output_manifest=output_manifest, | 37 output_manifest=output_manifest, |
38 refs=refs, patch_oauth2=oauth2, | 38 refs=refs, patch_oauth2=oauth2, |
39 clobber=clobber, | 39 clobber=clobber, |
40 root_solution_revision=root_solution_revision, | 40 root_solution_revision=root_solution_revision, |
41 suffix=suffix) | 41 suffix=suffix) |
42 | 42 |
43 | 43 |
44 def GenTests(api): | 44 def GenTests(api): |
45 yield api.test('basic') + api.properties( | 45 yield api.test('basic') + api.properties( |
| 46 mastername='chromium.linux', |
| 47 buildername='Linux Builder', |
| 48 slavename='totallyaslave-m1', |
46 patch=False, | 49 patch=False, |
47 revision='abc' | 50 revision='abc' |
48 ) | 51 ) |
49 yield api.test('basic_with_branch_heads') + api.properties( | 52 yield api.test('basic_with_branch_heads') + api.properties( |
| 53 mastername='chromium.linux', |
| 54 buildername='Linux Builder', |
| 55 slavename='totallyaslave-m1', |
50 with_branch_heads=True, | 56 with_branch_heads=True, |
51 suffix='with branch heads' | 57 suffix='with branch heads' |
52 ) | 58 ) |
53 yield api.test('basic_output_manifest') + api.properties( | 59 yield api.test('basic_output_manifest') + api.properties( |
| 60 mastername='chromium.linux', |
| 61 buildername='Linux Builder', |
| 62 slavename='totallyaslave-m1', |
54 output_manifest=True, | 63 output_manifest=True, |
55 ) | 64 ) |
56 yield api.test('tryjob') + api.properties( | 65 yield api.test('tryjob') + api.properties( |
| 66 mastername='tryserver.chromium.linux', |
| 67 buildername='linux_rel', |
| 68 slavename='totallyaslave-c4', |
57 issue=12345, | 69 issue=12345, |
58 patchset=654321, | 70 patchset=654321, |
59 patch_url='http://src.chromium.org/foo/bar' | 71 patch_url='http://src.chromium.org/foo/bar' |
60 ) | 72 ) |
61 yield api.test('trychange') + api.properties( | 73 yield api.test('trychange') + api.properties( |
| 74 mastername='tryserver.chromium.linux', |
| 75 buildername='linux_rel', |
| 76 slavename='totallyaslave-c4', |
62 refs=['+refs/change/1/2/333'], | 77 refs=['+refs/change/1/2/333'], |
63 ) | 78 ) |
64 yield api.test('trychange_oauth2') + api.properties( | 79 yield api.test('trychange_oauth2') + api.properties( |
| 80 mastername='tryserver.chromium.linux', |
| 81 buildername='linux_rel', |
| 82 slavename='totallyaslave-c4', |
65 oauth2=True, | 83 oauth2=True, |
66 ) | 84 ) |
67 yield api.test('tryjob_fail') + api.properties( | 85 yield api.test('tryjob_fail') + api.properties( |
| 86 mastername='tryserver.chromium.linux', |
| 87 buildername='linux_rel', |
| 88 slavename='totallyaslave-c4', |
68 issue=12345, | 89 issue=12345, |
69 patchset=654321, | 90 patchset=654321, |
70 patch_url='http://src.chromium.org/foo/bar', | 91 patch_url='http://src.chromium.org/foo/bar', |
71 ) + api.step_data('bot_update', retcode=1) | 92 ) + api.step_data('bot_update', retcode=1) |
72 yield api.test('tryjob_fail_patch') + api.properties( | 93 yield api.test('tryjob_fail_patch') + api.properties( |
| 94 mastername='tryserver.chromium.linux', |
| 95 buildername='linux_rel', |
| 96 slavename='totallyaslave-c4', |
73 issue=12345, | 97 issue=12345, |
74 patchset=654321, | 98 patchset=654321, |
75 patch_url='http://src.chromium.org/foo/bar', | 99 patch_url='http://src.chromium.org/foo/bar', |
76 fail_patch='apply', | 100 fail_patch='apply', |
77 ) + api.step_data('bot_update', retcode=88) | 101 ) + api.step_data('bot_update', retcode=88) |
78 yield api.test('tryjob_fail_patch_download') + api.properties( | 102 yield api.test('tryjob_fail_patch_download') + api.properties( |
| 103 mastername='tryserver.chromium.linux', |
| 104 buildername='linux_rel', |
| 105 slavename='totallyaslave-c4', |
79 issue=12345, | 106 issue=12345, |
80 patchset=654321, | 107 patchset=654321, |
81 patch_url='http://src.chromium.org/foo/bar', | 108 patch_url='http://src.chromium.org/foo/bar', |
82 fail_patch='download' | 109 fail_patch='download' |
83 ) + api.step_data('bot_update', retcode=87) | 110 ) + api.step_data('bot_update', retcode=87) |
84 yield api.test('forced') + api.properties( | 111 yield api.test('forced') + api.properties( |
| 112 mastername='experimental', |
| 113 buildername='Experimental Builder', |
| 114 slavename='somehost', |
85 force=1 | 115 force=1 |
86 ) | 116 ) |
87 yield api.test('no_shallow') + api.properties( | 117 yield api.test('no_shallow') + api.properties( |
| 118 mastername='experimental', |
| 119 buildername='Experimental Builder', |
| 120 slavename='somehost', |
88 no_shallow=1 | 121 no_shallow=1 |
89 ) | 122 ) |
| 123 yield api.test('off') + api.properties( |
| 124 mastername='experimental', |
| 125 buildername='Experimental Builder', |
| 126 slavename='somehost', |
| 127 ) |
| 128 yield api.test('svn_mode') + api.properties( |
| 129 mastername='experimental.svn', |
| 130 buildername='Experimental SVN Builder', |
| 131 slavename='somehost', |
| 132 force=1 |
| 133 ) |
90 yield api.test('clobber') + api.properties( | 134 yield api.test('clobber') + api.properties( |
| 135 mastername='experimental', |
| 136 buildername='Experimental Builder', |
| 137 slavename='somehost', |
91 clobber=1 | 138 clobber=1 |
92 ) | 139 ) |
93 yield api.test('reset_root_solution_revision') + api.properties( | 140 yield api.test('reset_root_solution_revision') + api.properties( |
| 141 mastername='experimental', |
| 142 buildername='Experimental Builder', |
| 143 slavename='somehost', |
94 root_solution_revision='revision', | 144 root_solution_revision='revision', |
95 ) | 145 ) |
96 yield api.test('tryjob_v8') + api.properties( | 146 yield api.test('tryjob_v8') + api.properties( |
| 147 mastername='tryserver.chromium.linux', |
| 148 buildername='linux_rel', |
| 149 slavename='totallyaslave-c4', |
97 issue=12345, | 150 issue=12345, |
98 patchset=654321, | 151 patchset=654321, |
99 patch_url='http://src.chromium.org/foo/bar', | 152 patch_url='http://src.chromium.org/foo/bar', |
100 patch_project='v8', | 153 patch_project='v8', |
101 revisions={'src/v8': 'abc'} | 154 revisions={'src/v8': 'abc'} |
102 ) | 155 ) |
OLD | NEW |