summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/gyptest-missing-cfbundlesignature.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/mac/gyptest-missing-cfbundlesignature.py')
-rw-r--r--deps/gyp/test/mac/gyptest-missing-cfbundlesignature.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/deps/gyp/test/mac/gyptest-missing-cfbundlesignature.py b/deps/gyp/test/mac/gyptest-missing-cfbundlesignature.py
new file mode 100644
index 0000000000..43cab77bdf
--- /dev/null
+++ b/deps/gyp/test/mac/gyptest-missing-cfbundlesignature.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2012 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Verifies that an Info.plist with CFBundleSignature works.
+"""
+
+import TestGyp
+
+import sys
+
+if sys.platform == 'darwin':
+ print "This test is currently disabled: https://crbug.com/483696."
+ sys.exit(0)
+
+ test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
+
+ test.run_gyp('test.gyp', chdir='missing-cfbundlesignature')
+ test.build('test.gyp', test.ALL, chdir='missing-cfbundlesignature')
+
+ test.built_file_must_match('mytarget.app/Contents/PkgInfo', 'APPL????',
+ chdir='missing-cfbundlesignature')
+
+ test.built_file_must_match('myothertarget.app/Contents/PkgInfo', 'APPL????',
+ chdir='missing-cfbundlesignature')
+
+ test.built_file_must_match('thirdtarget.app/Contents/PkgInfo', 'APPL????',
+ chdir='missing-cfbundlesignature')
+ test.pass_test()