1
0

gyptest-global-settings.py 991 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python
  2. # Copyright (c) 2012 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 the global xcode_settings processing doesn't throw.
  7. Regression test for http://crbug.com/109163
  8. """
  9. import TestGyp
  10. import sys
  11. if sys.platform == 'darwin':
  12. test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
  13. # The xcode-ninja generator handles gypfiles which are not at the
  14. # project root incorrectly.
  15. # cf. https://code.google.com/p/gyp/issues/detail?id=460
  16. if test.format == 'xcode-ninja':
  17. test.skip_test()
  18. test.run_gyp('src/dir2/dir2.gyp', chdir='global-settings', depth='src')
  19. # run_gyp shouldn't throw.
  20. # Check that BUILT_PRODUCTS_DIR was set correctly, too.
  21. test.build('dir2/dir2.gyp', 'dir2_target', chdir='global-settings/src',
  22. SYMROOT='../build')
  23. test.built_file_must_exist('file.txt', chdir='global-settings/src')
  24. test.pass_test()