OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 Google Inc. All rights reserved. | 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 | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """ | 7 """ |
8 Tests things related to ARCHS. | 8 Tests things related to ARCHS. |
9 """ | 9 """ |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 if test.format != 'make': | 52 if test.format != 'make': |
53 # Build all targets except 'exe_32_64_no_sources' that does build | 53 # Build all targets except 'exe_32_64_no_sources' that does build |
54 # but should not cause error when generating ninja files | 54 # but should not cause error when generating ninja files |
55 targets = [ | 55 targets = [ |
56 'static_32_64', 'shared_32_64', 'shared_32_64_bundle', | 56 'static_32_64', 'shared_32_64', 'shared_32_64_bundle', |
57 'module_32_64', 'module_32_64_bundle', | 57 'module_32_64', 'module_32_64_bundle', |
58 'exe_32_64', 'exe_32_64_bundle', 'precompiled_prefix_header_mm_32_64', | 58 'exe_32_64', 'exe_32_64_bundle', 'precompiled_prefix_header_mm_32_64', |
59 ] | 59 ] |
60 | 60 |
61 test.run_gyp('test-archs-multiarch.gyp', chdir='archs') | 61 test.run_gyp('test-archs-multiarch.gyp', chdir='archs') |
| 62 |
62 for target in targets: | 63 for target in targets: |
63 test.build('test-archs-multiarch.gyp', target=target, chdir='archs') | 64 test.build('test-archs-multiarch.gyp', target=target, chdir='archs') |
64 | 65 |
65 result_file = test.built_file_path( | 66 result_file = test.built_file_path( |
66 'static_32_64', chdir='archs', type=test.STATIC_LIB) | 67 'static_32_64', chdir='archs', type=test.STATIC_LIB) |
67 test.must_exist(result_file) | 68 test.must_exist(result_file) |
68 TestMac.CheckFileType(test, result_file, ['i386', 'x86_64']) | 69 TestMac.CheckFileType(test, result_file, ['i386', 'x86_64']) |
69 | 70 |
70 result_file = test.built_file_path( | 71 result_file = test.built_file_path( |
71 'shared_32_64', chdir='archs', type=test.SHARED_LIB) | 72 'shared_32_64', chdir='archs', type=test.SHARED_LIB) |
(...skipping 13 matching lines...) Expand all Loading... |
85 | 86 |
86 result_file = test.built_file_path( | 87 result_file = test.built_file_path( |
87 'exe_32_64', chdir='archs', type=test.EXECUTABLE) | 88 'exe_32_64', chdir='archs', type=test.EXECUTABLE) |
88 test.must_exist(result_file) | 89 test.must_exist(result_file) |
89 TestMac.CheckFileType(test, result_file, ['i386', 'x86_64']) | 90 TestMac.CheckFileType(test, result_file, ['i386', 'x86_64']) |
90 | 91 |
91 result_file = test.built_file_path('Test App.app/Contents/MacOS/Test App', | 92 result_file = test.built_file_path('Test App.app/Contents/MacOS/Test App', |
92 chdir='archs') | 93 chdir='archs') |
93 test.must_exist(result_file) | 94 test.must_exist(result_file) |
94 TestMac.CheckFileType(test, result_file, ['i386', 'x86_64']) | 95 TestMac.CheckFileType(test, result_file, ['i386', 'x86_64']) |
OLD | NEW |