mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
998 B
38 lines
998 B
#!/usr/bin/env python
|
|
|
|
# Copyright (c) 2010 Google Inc. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
"""
|
|
Verifies build of an executable in three different configurations.
|
|
"""
|
|
|
|
import TestGyp
|
|
|
|
# Keys that do not belong inside a configuration dictionary.
|
|
invalid_configuration_keys = [
|
|
'actions',
|
|
'all_dependent_settings',
|
|
'configurations',
|
|
'dependencies',
|
|
'direct_dependent_settings',
|
|
'libraries',
|
|
'link_settings',
|
|
'sources',
|
|
'target_name',
|
|
'type',
|
|
]
|
|
|
|
test = TestGyp.TestGyp()
|
|
|
|
if test.format == 'scons':
|
|
test.skip_test('TODO: http://code.google.com/p/gyp/issues/detail?id=176\n')
|
|
|
|
for test_key in invalid_configuration_keys:
|
|
test.run_gyp('%s.gyp' % test_key, status=1, stderr=None)
|
|
expect = ['%s not allowed in the Debug configuration, found in target '
|
|
'%s.gyp:configurations#target' % (test_key, test_key)]
|
|
test.must_contain_all_lines(test.stderr(), expect)
|
|
|
|
test.pass_test()
|
|
|