Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: test/mac/gyptest-archs.py

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/mac/gyptest-app-error.py ('k') | test/mac/gyptest-cflags.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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'])
OLDNEW
« no previous file with comments | « test/mac/gyptest-app-error.py ('k') | test/mac/gyptest-cflags.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698