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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/win/gyptest-no-quotes.py
diff --git a/test/win/gyptest-no-quotes.py b/test/win/gyptest-no-quotes.py
new file mode 100644
index 0000000000000000000000000000000000000000..dc079e048d8a637b70af1203b672065d81d649d2
--- /dev/null
+++ b/test/win/gyptest-no-quotes.py
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2012 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Make sure msvs_quote_cmd = 0 is handled (disabling all quoting for
+the shell, and letting the action do it manually).
+"""
+
+import TestGyp
+
+import sys
+
+if sys.platform == 'win32':
+ test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
+
+ CHDIR = 'no-quoting'
+ test.run_gyp('no-quoting.gyp', chdir=CHDIR)
+
+ # Without quoting it should fail because the path to the input file won't be
+ # quoted.
+ test.build('no-quoting.gyp', 'test_noquote', chdir=CHDIR, status=1)
+
+ test.build('no-quoting.gyp', 'test_quote', chdir=CHDIR)
+ # msvs_quote_cmd not specified is equivalent to on.
+ test.build('no-quoting.gyp', 'test_quote_unspec', chdir=CHDIR)
+
+ test.pass_test()
« 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