OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
2 | |
3 # Copyright (c) 2014 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 it's possible to build host targets correctly in a multilib | |
9 configuration, explicitly forcing either 32 or 64 bit. | |
10 """ | |
11 | |
12 import TestGyp | |
13 | |
14 test = TestGyp.TestGyp(formats=['android']) | |
15 | |
16 test.run_gyp('host_32or64.gyp') | |
17 | |
18 # Force building as 32-bit | |
19 test.build('host_32or64.gyp', 'generate_output', | |
20 arguments=['GYP_HOST_VAR_PREFIX=$(HOST_2ND_ARCH_VAR_PREFIX)', | |
21 'GYP_HOST_MULTILIB=32']) | |
22 | |
23 test.built_file_must_match('host_32or64.output', 'Hello, 32-bit world!\n') | |
24 | |
25 # Force building as 64-bit | |
26 test.build('host_32or64.gyp', 'generate_output', | |
27 arguments=['GYP_HOST_VAR_PREFIX=', | |
28 'GYP_HOST_MULTILIB=64']) | |
29 | |
30 test.built_file_must_match('host_32or64.output', 'Hello, 64-bit world!\n') | |
31 | |
32 test.pass_test() | |
OLD | NEW |