gyptest-bare.py 558 B

123456789101112131415161718192021222324
  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 actions which are not depended on by other targets get executed.
  7. """
  8. import TestGyp
  9. test = TestGyp.TestGyp()
  10. test.run_gyp('bare.gyp', chdir='src')
  11. test.relocate('src', 'relocate/src')
  12. test.build('bare.gyp', chdir='relocate/src')
  13. file_content = 'Hello from bare.py\n'
  14. test.built_file_must_match('out.txt', file_content, chdir='relocate/src')
  15. test.pass_test()