blob: 92bade6d48be01d8a8a01e4ae35b6e80bd0b894a [file] [log] [blame]
#!/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')'input-root.gyp', target='test', chdir='relocate/src')
expect = """\
Hello somefile
test.run_built_executable('test', chdir='relocate/src', stdout=expect)