gyptest-global-settings.py 776 B

1234567891011121314151617181920212223242526
  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. test.run_gyp('src/dir2/dir2.gyp', chdir='global-settings', depth='src')
  14. # run_gyp shouldn't throw.
  15. # Check that BUILT_PRODUCTS_DIR was set correctly, too.
  16. test.build('dir2/dir2.gyp', 'dir2_target', chdir='global-settings/src',
  17. SYMROOT='../build')
  18. test.built_file_must_exist('file.txt', chdir='global-settings/src')
  19. test.pass_test()