blob: d5603744dbbf63805778cd80daac5fdc6f68551a [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/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"""
8Verifies that msvs_configuration_attributes and
9msbuild_configuration_attributes are applied by using
10them to set the OutputDirectory.
11"""
12
13import TestGyp
14import os
15
16import sys
17
18if sys.platform == 'win32':
19 print "This test is currently disabled: https://crbug.com/483696."
20 sys.exit(0)
21
22
23
24test = TestGyp.TestGyp(workdir='workarea_all',formats=['msvs'])
25
26vc_version = 'VC90'
27
28if os.getenv('GYP_MSVS_VERSION'):
29 vc_version = ['VC90','VC100'][int(os.getenv('GYP_MSVS_VERSION')) >= 2010]
30
31expected_exe_file = os.path.join(test.workdir, vc_version, 'hello.exe')
32
33test.run_gyp('hello.gyp')
34
35test.build('hello.gyp')
36
37test.must_exist(expected_exe_file)
38
39test.pass_test()