summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 31b79671e31..ae87ebaaba8 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -665,6 +665,22 @@ def getIceDir(subdir = None, testdir = None):
else:
return toplevel
+def getSliceDir():
+ #
+ # If ICE_HOME is set we're running the test against a binary distribution. Otherwise,
+ # we're running the test against a source distribution.
+ #
+ global iceHome
+ if iceHome:
+ if isDarwin() and iceHome == "/usr/local":
+ return "/usr/local/share/slice"
+ elif isLinux() and iceHome == "/usr":
+ return "/usr/share/Ice-" + iceVersion + "/slice"
+ else:
+ return os.path.join(iceHome, "slice")
+ else:
+ return os.path.join(toplevel, "slice")
+
def phpCleanup():
if os.path.exists("tmp.ini"):
os.remove("tmp.ini")