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 that manual rules on Windows override the built in ones. 9""" 10 11import sys 12import TestGyp 13 14if 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 = """\ 20Hello from program.c 21Got 42. 22""" 23 test.run_built_executable('program', chdir=CHDIR, stdout=expect) 24 test.pass_test() 25