gyptest-use-built-dependencies.py 620 B

1234567891011121314151617181920212223
  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 that rules which use built dependencies work correctly.
  7. """
  8. import TestGyp
  9. test = TestGyp.TestGyp()
  10. test.run_gyp('use-built-dependencies-rule.gyp', chdir='src')
  11. test.relocate('src', 'relocate/src')
  12. test.build('use-built-dependencies-rule.gyp', chdir='relocate/src')
  13. test.built_file_must_exist('main_output', chdir='relocate/src')
  14. test.built_file_must_match('main_output', 'output', chdir='relocate/src')
  15. test.pass_test()