summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
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 /scripts/TestUtil.py
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
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py8
1 files changed, 7 insertions, 1 deletions
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", "") != "":