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

Unified Diff: test/mac/gyptest-framework.py

Issue 23461010: ninja/mac: Don't write .TOC files into framework bundles. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pylib/gyp/generator/ninja.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mac/gyptest-framework.py
===================================================================
--- test/mac/gyptest-framework.py (revision 1702)
+++ test/mac/gyptest-framework.py (working copy)
@@ -10,8 +10,19 @@
import TestGyp
+import os
import sys
+
+def ls(path):
+ '''Returns a list of all files in a directory, relative to the directory.'''
+ result = []
+ for dirpath, _, files in os.walk(path):
+ for f in files:
+ result.append(os.path.join(dirpath, f)[len(path) + 1:])
+ return result
+
+
if sys.platform == 'darwin':
test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
@@ -47,4 +58,17 @@
'Test Framework.framework/Versions/A/Resources/PkgInfo',
chdir='framework')
+ # Check that no other files get added to the bundle.
+ print set(ls(test.built_file_path('Test Framework.framework',
+ chdir='framework')))
+ if set(ls(test.built_file_path('Test Framework.framework',
+ chdir='framework'))) != \
+ set(['Versions/A/Test Framework',
+ 'Versions/A/Resources/Info.plist',
+ 'Versions/A/Resources/English.lproj/InfoPlist.strings',
+ 'Test Framework',
Mark Mentovai 2013/08/27 21:40:45 There are no symlinks in here?
Nico 2013/08/27 21:42:35 "Test Framework" is a symlink to the binary (point
Mark Mentovai 2013/08/27 21:44:35 Hmph. I was expecting to see Versions/Current and
Nico 2013/08/27 21:45:56 The existence of the symlinks is checked explicitl
+ 'Versions/A/Libraries/empty.c', # Written by a gyp action.
+ ]):
+ test.fail_test()
+
test.pass_test()
« no previous file with comments | « pylib/gyp/generator/ninja.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698