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