gyptest-headers.py 608 B

1234567891011121314151617181920212223242526272829
  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 that .hpp files are ignored when included in the source list on all
  7. platforms.
  8. """
  9. import TestGyp
  10. test = TestGyp.TestGyp()
  11. test.run_gyp('headers.gyp', chdir='src')
  12. test.relocate('src', 'relocate/src')
  13. test.build('headers.gyp', test.ALL, chdir='relocate/src')
  14. expect = """\
  15. Hello from program.c
  16. Hello from lib1.c
  17. """
  18. test.run_built_executable('program', chdir='relocate/src', stdout=expect)
  19. test.pass_test()