summaryrefslogtreecommitdiff
path: root/other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-missing-cfbundlesignature.py
diff options
context:
space:
mode:
Diffstat (limited to 'other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-missing-cfbundlesignature.py')
-rw-r--r--other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-missing-cfbundlesignature.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-missing-cfbundlesignature.py b/other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-missing-cfbundlesignature.py
new file mode 100644
index 000000000..43cab77bd
--- /dev/null
+++ b/other-licenses/gyp-deps/tools/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()