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 'copies' with app bundles are handled correctly. | 8 Verifies that 'copies' with app bundles are handled correctly. |
9 """ | 9 """ |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 mtime = os.path.getmtime(dep_bundle) | 39 mtime = os.path.getmtime(dep_bundle) |
40 atime = os.path.getatime(dep_bundle) | 40 atime = os.path.getatime(dep_bundle) |
41 for i in range(3): | 41 for i in range(3): |
42 os.utime(dep_bundle, (atime + i * 1000, mtime + i * 1000)) | 42 os.utime(dep_bundle, (atime + i * 1000, mtime + i * 1000)) |
43 test.build('framework.gyp', 'copy_target', chdir='framework') | 43 test.build('framework.gyp', 'copy_target', chdir='framework') |
44 | 44 |
45 | 45 |
46 # Check that actions ran. | 46 # Check that actions ran. |
47 test.built_file_must_exist('action_file', chdir='framework') | 47 test.built_file_must_exist('action_file', chdir='framework') |
48 | 48 |
| 49 # Test that a copy with the "Code Sign on Copy" flag on succeeds. |
| 50 test.build('framework.gyp', 'copy_target_code_sign', chdir='framework') |
| 51 |
49 test.pass_test() | 52 test.pass_test() |
OLD | NEW |