| Index: test/msvs/buildevents/gyptest-all.py
|
| ===================================================================
|
| --- test/msvs/buildevents/gyptest-all.py (revision 0)
|
| +++ test/msvs/buildevents/gyptest-all.py (revision 0)
|
| @@ -0,0 +1,23 @@
|
| +#!/usr/bin/env python
|
| +
|
| +# Copyright (c) 2011 Google Inc. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +"""
|
| +Verifies that precompiled headers can be specified.
|
| +"""
|
| +
|
| +import TestGyp
|
| +
|
| +test = TestGyp.TestGyp(formats=['msvs'], workdir='workarea_all')
|
| +
|
| +test.run_gyp('buildevents.gyp', '-G', 'msvs_version=2008')
|
| +test.must_contain('main.vcproj', 'Name="VCPreBuildEventTool"')
|
| +test.must_contain('main.vcproj', 'Name="VCPostBuildEventTool"')
|
| +
|
| +test.run_gyp('buildevents.gyp', '-G', 'msvs_version=2010')
|
| +test.must_contain('main.vcxproj', '<PreBuildEvent>')
|
| +test.must_contain('main.vcxproj', '<PostBuildEvent>')
|
| +
|
| +test.pass_test()
|
|
|