Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | # Copyright (c) 2016 Google Inc. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import TestGyp |
| 6 | |
| 7 | import os |
| 8 | import sys |
| 9 | |
| 10 | if (sys.platform == 'win32' and |
| 11 | int(os.environ.get('GYP_MSVS_VERSION', 0)) >= 2015): |
| 12 | test = TestGyp.TestGyp(formats=['msvs']) |
| 13 | |
| 14 | CHDIR = 'compiler-flags' |
| 15 | |
| 16 | test.run_gyp('compile-as-winrt.gyp', chdir=CHDIR) |
| 17 | |
| 18 | test.build('compile-as-winrt.gyp', 'test-compile-as-winrt', chdir=CHDIR) |
| 19 | |
| 20 | test.pass_test() |