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 Verifies that device and simulator bundles are built correctly. | 8 Verifies that device and simulator bundles are built correctly. |
9 """ | 9 """ |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 test.fail_test() | 22 test.fail_test() |
23 | 23 |
24 | 24 |
25 if sys.platform == 'darwin': | 25 if sys.platform == 'darwin': |
26 # TODO(justincohen): Enable this in xcode too once ninja can codesign and bots | 26 # TODO(justincohen): Enable this in xcode too once ninja can codesign and bots |
27 # are configured with signing certs. | 27 # are configured with signing certs. |
28 test = TestGyp.TestGyp(formats=['ninja']) | 28 test = TestGyp.TestGyp(formats=['ninja']) |
29 | 29 |
30 test.run_gyp('test-device.gyp', chdir='app-bundle') | 30 test.run_gyp('test-device.gyp', chdir='app-bundle') |
31 | 31 |
32 for configuration in ['Debug-iphoneos', 'Debug-iphonesimulator']: | 32 for configuration in ['Default-iphoneos', 'Default']: |
33 test.set_configuration(configuration) | 33 test.set_configuration(configuration) |
34 test.build('test-device.gyp', test.ALL, chdir='app-bundle') | 34 test.build('test-device.gyp', test.ALL, chdir='app-bundle') |
35 result_file = test.built_file_path('Test App Gyp.bundle/Test App Gyp', | 35 result_file = test.built_file_path('Test App Gyp.bundle/Test App Gyp', |
36 chdir='app-bundle') | 36 chdir='app-bundle') |
37 test.must_exist(result_file) | 37 test.must_exist(result_file) |
38 if configuration == 'Debug-iphoneos': | 38 if configuration == 'Default-iphoneos': |
39 CheckFileType(result_file, 'armv7') | 39 CheckFileType(result_file, 'armv7') |
40 else: | 40 else: |
41 CheckFileType(result_file, 'i386') | 41 CheckFileType(result_file, 'i386') |
42 | 42 |
43 test.pass_test() | 43 test.pass_test() |
OLD | NEW |