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() |