initial import
[vuplus_webkit] / Source / ThirdParty / gyp / test / toolsets / gyptest-toolsets.py
1 #!/usr/bin/env python
2
3 # Copyright (c) 2009 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 """
8 Verifies that toolsets are correctly applied
9 """
10
11 import TestGyp
12
13 # Multiple toolsets are currently only supported by the make generator.
14 test = TestGyp.TestGyp(formats=['make'])
15
16 test.run_gyp('toolsets.gyp')
17
18 test.build('toolsets.gyp', test.ALL)
19
20 test.run_built_executable('host-main', stdout="Host\n")
21 test.run_built_executable('target-main', stdout="Target\n")
22
23 test.pass_test()