/src/3rdparty/webkit/Source/ThirdParty/gyp/test/multiple-targets/gyptest-all.py

https://bitbucket.org/ultra_iter/qt-vtl · Python · 35 lines · 16 code · 11 blank · 8 comment · 0 complexity · 15046a9b557caf7064c010d7d6402187 MD5 · raw file

  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. """
  7. import TestGyp
  8. test = TestGyp.TestGyp()
  9. test.run_gyp('multiple.gyp', chdir='src')
  10. test.relocate('src', 'relocate/src')
  11. # TODO(sgk): remove stderr=None when the --generator-output= support
  12. # gets rid of the scons warning
  13. test.build('multiple.gyp', test.ALL, chdir='relocate/src', stderr=None)
  14. expect1 = """\
  15. hello from prog1.c
  16. hello from common.c
  17. """
  18. expect2 = """\
  19. hello from prog2.c
  20. hello from common.c
  21. """
  22. test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src')
  23. test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src')
  24. test.pass_test()