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

Side by Side Diff: test/make_global_settings/wrapper/gyptest-wrapper.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 *_wrapper in 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('wrapper.gyp')
21
22 if test.format == 'make':
23 cc_expected = """ifneq (,$(filter $(origin CC), undefined default))
24 CC = $(abspath distcc) $(abspath clang)
25 endif
26 """
27 link_expected = 'LINK ?= $(abspath distlink) $(abspath clang++)'
28 test.must_contain('Makefile', cc_expected)
29 test.must_contain('Makefile', link_expected)
30 if test.format == 'ninja':
31 cc_expected = 'cc = ../../distcc ../../clang'
32 ld_expected = 'ld = ../../distlink $cxx'
33 test.must_contain('out/Default/build.ninja', cc_expected)
34 test.must_contain('out/Default/build.ninja', ld_expected)
35
36 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698