diff options
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 8 |
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", "") != "": |