Home | History | Annotate | Download | only in win
      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 macro expansion of $(VCInstallDir) is handled, and specifically
      9 always / terminated for compatibility.
     10 """
     11 
     12 import TestGyp
     13 
     14 import sys
     15 
     16 if sys.platform == 'win32':
     17   test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
     18 
     19   CHDIR = 'vs-macros'
     20   test.run_gyp('vcinstalldir.gyp', chdir=CHDIR)
     21   # This fails on VS because the trailing slash escapes the trailing quote.
     22   test.build('vcinstalldir.gyp', 'test_slash_trailing', chdir=CHDIR, status=1)
     23   test.build('vcinstalldir.gyp', 'test_slash_dir', chdir=CHDIR)
     24   test.pass_test()
     25