summaryrefslogtreecommitdiff
path: root/cpp/test
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-08-21 18:45:55 +0200
committerJose <jose@zeroc.com>2014-08-21 18:45:55 +0200
commit641503506eeef3512b1fbf40ec4b0d499d52b6bc (patch)
tree8501faf2729fd2a788cde2444fe6c0666f1c0781 /cpp/test
parentFixed WINRT build (diff)
downloadice-641503506eeef3512b1fbf40ec4b0d499d52b6bc.tar.bz2
ice-641503506eeef3512b1fbf40ec4b0d499d52b6bc.tar.xz
ice-641503506eeef3512b1fbf40ec4b0d499d52b6bc.zip
Fix SSL configuration test to create Find.keychain
Diffstat (limited to 'cpp/test')
-rw-r--r--cpp/test/IceSSL/certs/Find.keychainbin29492 -> 0 bytes
-rwxr-xr-xcpp/test/IceSSL/configuration/run.py19
2 files changed, 19 insertions, 0 deletions
diff --git a/cpp/test/IceSSL/certs/Find.keychain b/cpp/test/IceSSL/certs/Find.keychain
deleted file mode 100644
index 7d4ba5745a2..00000000000
--- a/cpp/test/IceSSL/certs/Find.keychain
+++ /dev/null
Binary files differ
diff --git a/cpp/test/IceSSL/configuration/run.py b/cpp/test/IceSSL/configuration/run.py
index a67b5e2e920..44891d3bbe6 100755
--- a/cpp/test/IceSSL/configuration/run.py
+++ b/cpp/test/IceSSL/configuration/run.py
@@ -20,4 +20,23 @@ if len(path) == 0:
sys.path.append(os.path.join(path[0], "scripts"))
import TestUtil
+certsPath = os.path.abspath(os.path.join(os.getcwd(), "..", "certs"))
+keychainPath = os.path.abspath(os.path.join(certsPath, "Find.keychain"))
+
+if TestUtil.isDarwin():
+ try:
+ os.remove(keychainPath)
+ except OSError:
+ pass
+
+ os.system("security create-keychain -p password %s" % keychainPath)
+ for cert in ["s_rsa_ca1.pfx", "c_rsa_ca1.pfx"]:
+ os.system("security import %s -f pkcs12 -A -P password -k %s" % (os.path.join(certsPath, cert), keychainPath))
+
TestUtil.clientServerTest(additionalClientOptions = '"%s"' % os.getcwd())
+
+if TestUtil.isDarwin():
+ try:
+ os.remove(keychainPath)
+ except OSError:
+ pass