OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2013 Google Inc. All rights reserved. | 3 # Copyright (c) 2013 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 Verifies that device and simulator bundles are built correctly. | 8 Verifies that device and simulator bundles are built correctly. |
9 """ | 9 """ |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 kwds = collections.defaultdict(list) | 42 kwds = collections.defaultdict(list) |
43 if test.format == 'xcode': | 43 if test.format == 'xcode': |
44 if is_device_build: | 44 if is_device_build: |
45 configuration, sdk = configuration.split('-') | 45 configuration, sdk = configuration.split('-') |
46 kwds['arguments'].extend(['-sdk', sdk]) | 46 kwds['arguments'].extend(['-sdk', sdk]) |
47 if TestMac.Xcode.Version() < '0500': | 47 if TestMac.Xcode.Version() < '0500': |
48 kwds['arguments'].extend(['-arch', archs[0]]) | 48 kwds['arguments'].extend(['-arch', archs[0]]) |
49 | 49 |
50 test.set_configuration(configuration) | 50 test.set_configuration(configuration) |
51 filename = '%s.bundle/%s' % (target, target) | 51 filename = '%s.app/%s' % (target, target) |
52 test.build('test-archs.gyp', target, chdir='app-bundle', **kwds) | 52 test.build('test-archs.gyp', target, chdir='app-bundle', **kwds) |
53 result_file = test.built_file_path(filename, chdir='app-bundle') | 53 result_file = test.built_file_path(filename, chdir='app-bundle') |
54 | 54 |
55 test.must_exist(result_file) | 55 test.must_exist(result_file) |
56 TestMac.CheckFileType(test, result_file, archs) | 56 TestMac.CheckFileType(test, result_file, archs) |
57 | 57 |
58 test.pass_test() | 58 test.pass_test() |
OLD | NEW |