summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-06-10 21:19:28 +0200
committerJose <jose@zeroc.com>2016-06-10 21:19:28 +0200
commit1665ced8b48062d78d0035987bf33d6d28ed5c66 (patch)
treecbde5d9a048e9c0c7cc48e635f81bf5e9f8e2e12
parentIceGrid PlatformInfo fixes for Debian kFreeBSD (diff)
downloadice-1665ced8b48062d78d0035987bf33d6d28ed5c66.tar.bz2
ice-1665ced8b48062d78d0035987bf33d6d28ed5c66.tar.xz
ice-1665ced8b48062d78d0035987bf33d6d28ed5c66.zip
IceSSL/configuration test fixes for Debian kFreeBSD
-rwxr-xr-xcpp/test/IceSSL/configuration/run.py2
-rwxr-xr-xscripts/TestUtil.py8
2 files changed, 8 insertions, 2 deletions
diff --git a/cpp/test/IceSSL/configuration/run.py b/cpp/test/IceSSL/configuration/run.py
index 07e001c4fdc..8edf98af0f8 100755
--- a/cpp/test/IceSSL/configuration/run.py
+++ b/cpp/test/IceSSL/configuration/run.py
@@ -43,7 +43,7 @@ if TestUtil.isDarwin():
os.system("security create-keychain -p password %s" % keychainPath)
for cert in ["s_rsa_ca1.p12", "c_rsa_ca1.p12"]:
os.system("security import %s -f pkcs12 -A -P password -k %s" % (os.path.join(certsPath, cert), keychainPath))
-elif TestUtil.isLinux():
+elif TestUtil.iceUseOpenSSL():
#
# Create copies of the CA certificates named after the subject
# hash. This is used by the tests to find the CA certificates in
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index a838398f1b3..5a151a9525e 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -127,11 +127,17 @@ def isYocto():
return isLinux() and linuxDistribution and linuxDistribution == "Yocto"
def isDebian():
- return isLinux() and linuxDistribution and linuxDistribution == "Debian"
+ return (isLinux() and linuxDistribution and linuxDistribution == "Debian") or isDebianFreeBSD()
def isSles():
return isLinux() and linuxDistribution and linuxDistribution == "SUSE LINUX"
+def iceUseOpenSSL():
+ return any(sys.platform.startswith(p) for p in ["linux", "freebsd", "gnukfreebsd"])
+
+def isDebianFreeBSD():
+ return sys.platform.startswith("gnukfreebsd")
+
def getCppCompiler():
compiler = ""
if os.environ.get("CPP_COMPILER", "") != "":