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

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

Issue 1254413004: Adding framework path mapping for 'copies' action in gyp files. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Removing make/ninja tests Created 5 years, 2 months 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/framework/framework.gyp ('k') | no next file » | 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 Verifies that 'copies' with app bundles are handled correctly. 8 Verifies that 'copies' with app bundles are handled correctly.
9 """ 9 """
10 10
(...skipping 17 matching lines...) Expand all
28 test.built_file_must_exist( 28 test.built_file_must_exist(
29 'Test Framework.framework/foo/Dependency Bundle.framework', 29 'Test Framework.framework/foo/Dependency Bundle.framework',
30 chdir='framework') 30 chdir='framework')
31 test.built_file_must_exist( 31 test.built_file_must_exist(
32 'Test Framework.framework/foo/Dependency Bundle.framework/Versions/A', 32 'Test Framework.framework/foo/Dependency Bundle.framework/Versions/A',
33 chdir='framework') 33 chdir='framework')
34 test.built_file_must_exist( 34 test.built_file_must_exist(
35 'Test Framework.framework/Versions/A/Libraries/empty.c', 35 'Test Framework.framework/Versions/A/Libraries/empty.c',
36 chdir='framework') 36 chdir='framework')
37 37
38 # Verify BUILT_FRAMEWORKS_DIR is set and working.
39 test.build('framework.gyp', 'copy_embedded', chdir='framework')
40
41 test.built_file_must_exist(
42 'Embedded/Test Framework.framework', chdir='framework')
38 43
39 # Check that rebuilding the target a few times works. 44 # Check that rebuilding the target a few times works.
40 dep_bundle = test.built_file_path('Dependency Bundle.framework', 45 dep_bundle = test.built_file_path('Dependency Bundle.framework',
41 chdir='framework') 46 chdir='framework')
42 mtime = os.path.getmtime(dep_bundle) 47 mtime = os.path.getmtime(dep_bundle)
43 atime = os.path.getatime(dep_bundle) 48 atime = os.path.getatime(dep_bundle)
44 for i in range(3): 49 for i in range(3):
45 os.utime(dep_bundle, (atime + i * 1000, mtime + i * 1000)) 50 os.utime(dep_bundle, (atime + i * 1000, mtime + i * 1000))
46 test.build('framework.gyp', 'copy_target', chdir='framework') 51 test.build('framework.gyp', 'copy_target', chdir='framework')
47 52
48 53
49 # Check that actions ran. 54 # Check that actions ran.
50 test.built_file_must_exist('action_file', chdir='framework') 55 test.built_file_must_exist('action_file', chdir='framework')
51 56
52 # Test that a copy with the "Code Sign on Copy" flag on succeeds. 57 # Test that a copy with the "Code Sign on Copy" flag on succeeds.
53 test.build('framework.gyp', 'copy_target_code_sign', chdir='framework') 58 test.build('framework.gyp', 'copy_target_code_sign', chdir='framework')
54 59
55 test.pass_test() 60 test.pass_test()
OLDNEW
« no previous file with comments | « test/mac/framework/framework.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698