blob: f4ed16630e2f731893d615baa3dbd58cb4b5a3c0 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/usr/bin/env python
2
3# Copyright (c) 2012 Google Inc. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7"""
8Verifies that the global xcode_settings processing doesn't throw.
9Regression test for http://crbug.com/109163
10"""
11
12import TestGyp
13
14import sys
15
16if sys.platform == 'darwin':
17 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
18
19 # The xcode-ninja generator handles gypfiles which are not at the
20 # project root incorrectly.
21 # cf. https://code.google.com/p/gyp/issues/detail?id=460
22 if test.format == 'xcode-ninja':
23 test.skip_test()
24
25 test.run_gyp('src/dir2/dir2.gyp', chdir='global-settings', depth='src')
26 # run_gyp shouldn't throw.
27
28 # Check that BUILT_PRODUCTS_DIR was set correctly, too.
29 test.build('dir2/dir2.gyp', 'dir2_target', chdir='global-settings/src',
30 SYMROOT='../build')
31 test.built_file_must_exist('file.txt', chdir='global-settings/src')
32
33 test.pass_test()