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

Side by Side Diff: test/configurations/invalid/gyptest-configurations.py

Issue 11048018: Add "standalone_static_library" target flag (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/input.py ('k') | test/configurations/invalid/standalone_static_library.gyp » ('j') | 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/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2010 Google Inc. All rights reserved. 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 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """ 7 """
8 Verifies build of an executable in three different configurations. 8 Verifies build of an executable in three different configurations.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 # Keys that do not belong inside a configuration dictionary. 13 # Keys that do not belong inside a configuration dictionary.
14 invalid_configuration_keys = [ 14 invalid_configuration_keys = [
15 'actions', 15 'actions',
16 'all_dependent_settings', 16 'all_dependent_settings',
17 'configurations', 17 'configurations',
18 'dependencies', 18 'dependencies',
19 'direct_dependent_settings', 19 'direct_dependent_settings',
20 'libraries', 20 'libraries',
21 'link_settings', 21 'link_settings',
22 'sources', 22 'sources',
23 'standalone_static_library',
23 'target_name', 24 'target_name',
24 'type', 25 'type',
25 ] 26 ]
26 27
27 test = TestGyp.TestGyp() 28 test = TestGyp.TestGyp()
28 29
29 if test.format == 'scons': 30 if test.format == 'scons':
30 test.skip_test('TODO: http://code.google.com/p/gyp/issues/detail?id=176\n') 31 test.skip_test('TODO: http://code.google.com/p/gyp/issues/detail?id=176\n')
31 32
32 for test_key in invalid_configuration_keys: 33 for test_key in invalid_configuration_keys:
33 test.run_gyp('%s.gyp' % test_key, status=1, stderr=None) 34 test.run_gyp('%s.gyp' % test_key, status=1, stderr=None)
34 expect = ['%s not allowed in the Debug configuration, found in target ' 35 expect = ['%s not allowed in the Debug configuration, found in target '
35 '%s.gyp:configurations#target' % (test_key, test_key)] 36 '%s.gyp:configurations#target' % (test_key, test_key)]
36 test.must_contain_all_lines(test.stderr(), expect) 37 test.must_contain_all_lines(test.stderr(), expect)
37 38
38 test.pass_test() 39 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/input.py ('k') | test/configurations/invalid/standalone_static_library.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698