gyptest-copy.py 640 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python
  2. # Copyright (c) 2009 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 dependencies do the copy step.
  7. """
  8. import TestGyp
  9. test = TestGyp.TestGyp()
  10. test.run_gyp('copies.gyp', chdir='src')
  11. test.build('copies.gyp', 'proj2', chdir='src')
  12. test.run_built_executable('proj1',
  13. chdir='src',
  14. stdout="Hello from file1.c\n")
  15. test.run_built_executable('proj2',
  16. chdir='src',
  17. stdout="Hello from file2.c\n")
  18. test.pass_test()