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

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: fix test for gyp-win*& Created 7 years, 9 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
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 os
12 import sys
13 import TestGyp
14
15 test_format = ['ninja']
16 if sys.platform in ('linux2', 'darwin'):
17 test_format += ['make']
18
19 test = TestGyp.TestGyp(formats=test_format)
20
21 test.run_gyp('wrapper.gyp')
22
23 if test.format == 'make':
24 cc_expected = """ifneq (,$(filter $(origin CC), undefined default))
25 CC = $(abspath distcc) $(abspath clang)
26 endif
27 """
28 link_expected = 'LINK ?= $(abspath distlink) $(abspath clang++)'
29 test.must_contain('Makefile', cc_expected)
30 test.must_contain('Makefile', link_expected)
31 if test.format == 'ninja':
32 cc_expected = ('cc = ' + os.path.join('..', '..', 'distcc') + ' ' +
33 os.path.join('..', '..', 'clang'))
34 ld_expected = 'ld = ../../distlink $cxx'
35 if sys.platform == 'win32':
36 ld_expected = 'link.exe'
37 test.must_contain('out/Default/build.ninja', cc_expected)
38 test.must_contain('out/Default/build.ninja', ld_expected)
39
40 test.pass_test()
OLDNEW
« no previous file with comments | « test/make_global_settings/basics/make_global_settings.gyp ('k') | test/make_global_settings/wrapper/wrapper.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698