gyptest-updir.py 750 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # Copyright (c) 2012 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 file copies where the destination is one level above an expansion that
  7. yields a make variable.
  8. """
  9. import TestGyp
  10. # The Android build system doesn't allow output to go to arbitrary places.
  11. test = TestGyp.TestGyp(formats=['!android'])
  12. test.run_gyp('copies-updir.gyp', chdir='src')
  13. test.relocate('src', 'relocate/src')
  14. test.build('copies-updir.gyp', 'copies_up', chdir='relocate/src')
  15. test.built_file_must_match('../copies-out-updir/file1',
  16. 'file1 contents\n',
  17. chdir='relocate/src')
  18. test.pass_test()