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() |