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

Side by Side Diff: test/win/gyptest-no-quotes.py

Issue 10384100: ninja windows: support msvs_quote_cmd support (Closed) Base URL: http://git.chromium.org/external/gyp.git@master
Patch Set: use namedtuple instead Created 8 years, 7 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
« no previous file with comments | « pylib/gyp/msvs_emulation.py ('k') | test/win/no-quoting/no-quoting.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/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 """
8 Make sure msvs_quote_cmd = 0 is handled (disabling all quoting for
9 the shell, and letting the action do it manually).
10 """
11
12 import TestGyp
13
14 import sys
15
16 if sys.platform == 'win32':
17 test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
18
19 CHDIR = 'no-quoting'
20 test.run_gyp('no-quoting.gyp', chdir=CHDIR)
21
22 # Without quoting it should fail because the path to the input file won't be
23 # quoted.
24 test.build('no-quoting.gyp', 'test_noquote', chdir=CHDIR, status=1)
25
26 test.build('no-quoting.gyp', 'test_quote', chdir=CHDIR)
27 # msvs_quote_cmd not specified is equivalent to on.
28 test.build('no-quoting.gyp', 'test_quote_unspec', chdir=CHDIR)
29
30 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/msvs_emulation.py ('k') | test/win/no-quoting/no-quoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698