OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 # Copyright (c) 2010 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 """ |
| 8 Verifies build of an executable in three different configurations. |
| 9 """ |
| 10 |
| 11 import TestGyp |
| 12 |
| 13 # Keys that do not belong inside a configuration dictionary. |
| 14 invalid_configuration_keys = [ |
| 15 'actions', |
| 16 'all_dependent_settings', |
| 17 'configurations', |
| 18 'dependencies', |
| 19 'direct_dependent_settings', |
| 20 'libraries', |
| 21 'link_settings', |
| 22 'sources', |
| 23 'target_name', |
| 24 'type', |
| 25 ] |
| 26 |
| 27 test = TestGyp.TestGyp() |
| 28 |
| 29 for test_key in invalid_configuration_keys: |
| 30 test.run_gyp('%s.gyp' % test_key, status=1, stderr=None) |
| 31 expect = ['%s not allowed in the Debug configuration, found in target ' |
| 32 '%s.gyp:configurations#target' % (test_key, test_key)] |
| 33 test.must_contain_all_lines(test.stderr(), expect) |
| 34 |
| 35 test.pass_test() |
OLD | NEW |