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

Unified Diff: test/win/gyptest-command-quote.py

Issue 10269018: ninja windows: handle more cases in program quoting (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: additional test, add missing file Created 8 years, 8 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 | « test/win/command-quote/go.bat ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/win/gyptest-command-quote.py
diff --git a/test/win/gyptest-command-quote.py b/test/win/gyptest-command-quote.py
new file mode 100644
index 0000000000000000000000000000000000000000..7f873f2aad02a2e632fca11919da0ed7e292ab37
--- /dev/null
+++ b/test/win/gyptest-command-quote.py
@@ -0,0 +1,24 @@
+#!/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 the program in a command can be a called batch file, or an
+application in the path. Specifically, this means not quoting something like
+"call x.bat", lest the shell look for a program named "call x.bat", rather
+than calling "x.bat".
+"""
+
+import TestGyp
+
+import sys
+
+if sys.platform == 'win32':
+ test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
+ CHDIR = 'command-quote'
+ test.run_gyp('command-quote.gyp', chdir=CHDIR)
+ test.build('command-quote.gyp', test.ALL, chdir=CHDIR)
+ test.pass_test()
« no previous file with comments | « test/win/command-quote/go.bat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698