summaryrefslogtreecommitdiff
path: root/deps/gyp/test/ios/app-bundle/TestApp/check_no_signature.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/ios/app-bundle/TestApp/check_no_signature.py')
-rw-r--r--deps/gyp/test/ios/app-bundle/TestApp/check_no_signature.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/gyp/test/ios/app-bundle/TestApp/check_no_signature.py b/deps/gyp/test/ios/app-bundle/TestApp/check_no_signature.py
new file mode 100644
index 0000000000..4f6e340072
--- /dev/null
+++ b/deps/gyp/test/ios/app-bundle/TestApp/check_no_signature.py
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import os
+import subprocess
+import sys
+
+p = os.path.join(os.environ['BUILT_PRODUCTS_DIR'],os.environ['EXECUTABLE_PATH'])
+proc = subprocess.Popen(['codesign', '-v', p],
+ stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
+o = proc.communicate()[0].strip()
+if "code object is not signed at all" not in o:
+ sys.stderr.write('File should not already be signed.')
+ sys.exit(1)