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""" 8Make sure batch files run as actions. Regression test for previously missing 9trailing quote on command line. cmd typically will implicitly insert a missing 10quote, but if the command ends in a quote, it will not insert another, so the 11command can sometimes become unterminated. 12""" 13 14import TestGyp 15 16import sys 17 18if 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