diff options
author | Benoit Foucher <benoit@zeroc.com> | 2004-03-05 16:30:44 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2004-03-05 16:30:44 +0000 |
commit | d887f35c3505f60317f317ed7e7de43612571f8b (patch) | |
tree | 83763f3addb032fb8faf2afb954a30bb83cec9e8 /cpp/config/TestUtil.py | |
parent | Fix (diff) | |
download | ice-d887f35c3505f60317f317ed7e7de43612571f8b.tar.bz2 ice-d887f35c3505f60317f317ed7e7de43612571f8b.tar.xz ice-d887f35c3505f60317f317ed7e7de43612571f8b.zip |
Fixed cvs merge conflict
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r-- | cpp/config/TestUtil.py | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py index 3adc3062b12..1dde9b3e248 100644 --- a/cpp/config/TestUtil.py +++ b/cpp/config/TestUtil.py @@ -88,89 +88,6 @@ def isHpUx(): else: return 0 -#!/usr/bin/env python -# ********************************************************************** -# -# Copyright (c) 2003 -# ZeroC, Inc. -# Billerica, MA, USA -# -# All Rights Reserved. -# -# Ice is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License version 2 as published by -# the Free Software Foundation. -# -# ********************************************************************** - -# -# Set protocol to "ssl" in case you want to run the tests with the SSL -# protocol. Otherwise TCP is used. -# - -#protocol = "" -protocol = "ssl" - -# -# Set compressed to 1 in case you want to run the tests with -# protocol compression. -# - -#compress = 0 -compress = 1 - -# -# Set the host to the host name the test servers are running on. If -# not set, Ice will try to find out the IP address for the -# hostname. If you DNS isn't set up propertly, you should therefore -# use "localhost". -# - -#host = "someotherhost" -host = "localhost" - -# -# Don't change anything below this line! -# - -import sys, os, re - -def getIceVersion(): - - config = open(os.path.join(toplevel, "include", "IceUtil", "Config.h"), "r") - return re.search("ICE_STRING_VERSION \"([0-9\.]*)\"", config.read()).group(1) - -def getIceSoVersion(): - - config = open(os.path.join(toplevel, "include", "IceUtil", "Config.h"), "r") - intVersion = int(re.search("ICE_INT_VERSION ([0-9]*)", config.read()).group(1)) - majorVersion = intVersion / 10000 - minorVersion = intVersion / 100 - 100 * majorVersion - return '%d' % (majorVersion * 10 + minorVersion) - -def isCygwin(): - - # The substring on sys.platform is required because some cygwin - # versions return variations like "cygwin_nt-4.01". - if sys.platform[:6] == "cygwin": - return 1 - else: - return 0 - -def isWin32(): - - if sys.platform == "win32" or isCygwin(): - return 1 - else: - return 0 - -def isSolaris(): - - if sys.platform == "sunos5": - return 1 - else: - return 0 - def isDarwin(): if sys.platform == "darwin": |