1
0

gyptest-samedir.py 909 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env python
  2. # Copyright (c) 2013 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 two copies sections in the same target have the
  7. same destination directory.
  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-samedir.gyp', chdir='src')
  13. test.relocate('src', 'relocate/src')
  14. test.build('copies-samedir.gyp', 'copies_samedir', chdir='relocate/src')
  15. test.built_file_must_match('copies-out-samedir/file1',
  16. 'file1 contents\n',
  17. chdir='relocate/src')
  18. test.built_file_must_match('copies-out-samedir/file2',
  19. 'file2 contents\n',
  20. chdir='relocate/src')
  21. test.pass_test()