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 batch files run as actions. Regression test for previously missing 9 trailing quote on command line. cmd typically will implicitly insert a missing 10 quote, but if the command ends in a quote, it will not insert another, so the 11 command can sometimes become unterminated. 12 """ 13 14 import TestGyp 15 16 import sys 17 18 if sys.platform == 'win32': 19 test = TestGyp.TestGyp(formats=['msvs', 'ninja']) 20 21 CHDIR = 'batch-file-action' 22 test.run_gyp('batch-file-action.gyp', chdir=CHDIR) 23 test.build('batch-file-action.gyp', test.ALL, chdir=CHDIR) 24 25 test.pass_test() 26