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

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

Issue 2094021: Raise an error when a configuration dictionary contains invalid keys.... (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: '' Created 10 years, 7 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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()
OLDNEW
« no previous file with comments | « test/configurations/invalid/direct_dependent_settings.gyp ('k') | test/configurations/invalid/libraries.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698