blob: 9fb5e62edf464de38588922eca38470187f52bb5 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/usr/bin/env python
2
3# Copyright (c) 2011 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"""
8Verifies that precompiled headers can be specified.
9"""
10
11import TestGyp
12
13import sys
14
15if sys.platform == 'win32':
16 test = TestGyp.TestGyp(formats=['msvs', 'ninja'], workdir='workarea_all')
17 test.run_gyp('hello.gyp')
18 test.build('hello.gyp', 'hello')
19 test.run_built_executable('hello', stdout="Hello, world!\nHello, two!\n")
20 test.up_to_date('hello.gyp', test.ALL)
21 test.pass_test()