gyptest-input-root.py 574 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python
  2. # Copyright (c) 2011 Google Inc. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """
  6. Verifies that RULE_INPUT_ROOT isn't turned into a path in rule actions
  7. """
  8. import TestGyp
  9. test = TestGyp.TestGyp()
  10. test.run_gyp('input-root.gyp', chdir='src')
  11. test.relocate('src', 'relocate/src')
  12. test.build('input-root.gyp', target='test', chdir='relocate/src')
  13. expect = """\
  14. Hello somefile
  15. """
  16. test.run_built_executable('test', chdir='relocate/src', stdout=expect)
  17. test.pass_test()