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 that manual rules on Windows override the built in ones. 9 """ 10 11 import sys 12 import TestGyp 13 14 if sys.platform == 'win32': 15 test = TestGyp.TestGyp(formats=['msvs', 'ninja']) 16 CHDIR = 'src' 17 test.run_gyp('override.gyp', chdir=CHDIR) 18 test.build('override.gyp', test.ALL, chdir=CHDIR) 19 expect = """\ 20 Hello from program.c 21 Got 42. 22 """ 23 test.run_built_executable('program', chdir=CHDIR, stdout=expect) 24 test.pass_test() 25