| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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() |
| OLD | NEW |