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.
 
 
 
 
 
 

26 lines
574 B

#!/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 that RULE_INPUT_ROOT isn't turned into a path in rule actions
"""
import TestGyp
test = TestGyp.TestGyp()
test.run_gyp('input-root.gyp', chdir='src')
test.relocate('src', 'relocate/src')
test.build('input-root.gyp', target='test', chdir='relocate/src')
expect = """\
Hello somefile
"""
test.run_built_executable('test', chdir='relocate/src', stdout=expect)
test.pass_test()