| 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 bundles that have no 'sources' (pure resource containers) work. | 8 Verifies that bundles that have no 'sources' (pure resource containers) work. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 import TestGyp | 11 import TestGyp |
| 12 | 12 |
| 13 import sys | 13 import sys |
| 14 | 14 |
| 15 if sys.platform == 'darwin': | 15 if sys.platform == 'darwin': |
| 16 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) | 16 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) |
| 17 | 17 |
| 18 test.run_gyp('test.gyp', chdir='sourceless-module') | 18 test.run_gyp('test.gyp', |
| 19 '-G', 'xcode_ninja_target_pattern=^.*$', |
| 20 chdir='sourceless-module') |
| 19 | 21 |
| 20 # Just needs to build without errors. | 22 # Just needs to build without errors. |
| 21 test.build('test.gyp', 'empty_bundle', chdir='sourceless-module') | 23 test.build('test.gyp', 'empty_bundle', chdir='sourceless-module') |
| 22 test.built_file_must_not_exist( | 24 test.built_file_must_not_exist( |
| 23 'empty_bundle.bundle', chdir='sourceless-module') | 25 'empty_bundle.bundle', chdir='sourceless-module') |
| 24 | 26 |
| 25 # Needs to build, and contain a resource. | 27 # Needs to build, and contain a resource. |
| 26 test.build('test.gyp', 'resource_bundle', chdir='sourceless-module') | 28 test.build('test.gyp', 'resource_bundle', chdir='sourceless-module') |
| 27 | 29 |
| 28 test.built_file_must_exist( | 30 test.built_file_must_exist( |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 'test.gyp', 'dependent_on_resource_framework', chdir='sourceless-module') | 65 'test.gyp', 'dependent_on_resource_framework', chdir='sourceless-module') |
| 64 | 66 |
| 65 test.built_file_must_exist( | 67 test.built_file_must_exist( |
| 66 'resource_framework.framework/Resources/foo.manifest', | 68 'resource_framework.framework/Resources/foo.manifest', |
| 67 chdir='sourceless-module') | 69 chdir='sourceless-module') |
| 68 test.built_file_must_exist( | 70 test.built_file_must_exist( |
| 69 'resource_framework.framework/resource_framework', | 71 'resource_framework.framework/resource_framework', |
| 70 chdir='sourceless-module') | 72 chdir='sourceless-module') |
| 71 | 73 |
| 72 test.pass_test() | 74 test.pass_test() |
| OLD | NEW |