gyptest-all.py 540 B

1234567891011121314151617181920212223
  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. Tests the use of rules with the same output file name.
  7. """
  8. import TestGyp
  9. test = TestGyp.TestGyp()
  10. test.run_gyp('subdirs.gyp', chdir='src')
  11. test.relocate('src', 'relocate/src')
  12. test.build('subdirs.gyp', test.ALL, chdir='relocate/src')
  13. test.must_exist('relocate/src/subdir1/rule.txt')
  14. test.must_exist('relocate/src/subdir2/rule.txt')
  15. test.pass_test()