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.
27 lines
681 B
27 lines
681 B
12 years ago
|
#!/usr/bin/env python
|
||
|
|
||
|
# Copyright (c) 2011 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 rules related variables are expanded.
|
||
|
"""
|
||
|
|
||
|
import TestGyp
|
||
|
|
||
|
test = TestGyp.TestGyp(formats=['ninja'])
|
||
|
|
||
|
test.relocate('src', 'relocate/src')
|
||
|
|
||
|
test.run_gyp('variables.gyp', chdir='relocate/src')
|
||
|
|
||
|
test.build('variables.gyp', chdir='relocate/src')
|
||
|
|
||
|
test.run_built_executable('all_rule_variables',
|
||
|
chdir='relocate/src',
|
||
|
stdout="input_root\ninput_dirname\ninput_path\n" +
|
||
|
"input_ext\ninput_name\n")
|
||
|
|
||
|
test.pass_test()
|