Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Side by Side Diff: test/make_global_settings/basics/gyptest-make_global_settings.py

Issue 12300015: Support command wrapper in make_global_settings (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2013 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 """
8 Verifies make_global_settings.
9 """
10
11 import sys
12 import TestGyp
13
14 test_format = ['ninja']
15 if sys.platform in ('linux2', 'darwin'):
16 test_format += ['make']
17
18 test = TestGyp.TestGyp(formats=test_format)
19
20 test.run_gyp('make_global_settings.gyp')
21
22 if test.format == 'make':
23 cc_expected = """ifneq (,$(filter $(origin CC), undefined default))
24 CC = $(abspath clang)
25 endif
26 """
27 if sys.platform == 'linux2':
28 link_expected = """
29 LINK ?= flock $(builddir)/linker.lock $(abspath clang++)
30 """
31 elif sys.platform == 'darwin':
32 link_expected = """
33 LINK ?= ./gyp-mac-tool flock $(builddir)/linker.lock $(abspath clang++)
34 """
35 test.must_contain('Makefile', cc_expected)
36 test.must_contain('Makefile', link_expected)
37 if test.format == 'ninja':
38 cc_expected = 'cc = ../../clang'
39 ld_expected = 'ld = flock linker.lock $cxx'
40 if sys.platform == 'darwin':
41 ld_expected = './gyp-mac-tool flock linker.lock $cxx'
42 elif sys.platform == 'win32':
43 ld_expected = 'link.exe'
44 test.must_contain('out/Default/build.ninja', cc_expected)
45 test.must_contain('out/Default/build.ninja', ld_expected)
46
47 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698