Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1231)

Side by Side Diff: tools/mb/mb_unittest.py

Issue 1877173002: Change how MB handles goma_dir. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« tools/mb/mb.py ('K') | « tools/mb/mb_config.pyl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Tests for mb.py.""" 6 """Tests for mb.py."""
7 7
8 import json 8 import json
9 import StringIO 9 import StringIO
10 import os 10 import os
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 'crosscompile': { 124 'crosscompile': {
125 'gyp_crosscompile': True, 125 'gyp_crosscompile': True,
126 }, 126 },
127 'fake_feature1': { 127 'fake_feature1': {
128 'gn_args': 'enable_doom_melon=true', 128 'gn_args': 'enable_doom_melon=true',
129 'gyp_defines': 'doom_melon=1', 129 'gyp_defines': 'doom_melon=1',
130 }, 130 },
131 'gyp': {'type': 'gyp'}, 131 'gyp': {'type': 'gyp'},
132 'gn': {'type': 'gn'}, 132 'gn': {'type': 'gn'},
133 'goma': { 133 'goma': {
134 'gn_args': 'use_goma=true goma_dir="$(goma_dir)"', 134 'gn_args': 'use_goma=true',
135 'gyp_defines': 'goma=1 gomadir=$(goma_dir)', 135 'gyp_defines': 'goma=1',
136 }, 136 },
137 'rel': { 137 'rel': {
138 'gn_args': 'is_debug=false', 138 'gn_args': 'is_debug=false',
139 }, 139 },
140 'debug': { 140 'debug': {
141 'gn_args': 'is_debug=true', 141 'gn_args': 'is_debug=true',
142 }, 142 },
143 }, 143 },
144 } 144 }
145 """ 145 """
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 self.check(['validate'], mbw=mbw, ret=0) 441 self.check(['validate'], mbw=mbw, ret=0)
442 442
443 def test_bad_validate(self): 443 def test_bad_validate(self):
444 mbw = self.fake_mbw() 444 mbw = self.fake_mbw()
445 mbw.files[mbw.default_config] = TEST_BAD_CONFIG 445 mbw.files[mbw.default_config] = TEST_BAD_CONFIG
446 self.check(['validate'], mbw=mbw, ret=1) 446 self.check(['validate'], mbw=mbw, ret=1)
447 447
448 448
449 if __name__ == '__main__': 449 if __name__ == '__main__':
450 unittest.main() 450 unittest.main()
OLDNEW
« tools/mb/mb.py ('K') | « tools/mb/mb_config.pyl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698