summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/config/TestUtil.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index ce473d8e203..cf05fdf93d4 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -43,7 +43,12 @@ host = "localhost"
# Don't change anything below this line!
#
-import sys, os
+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 isCygwin():