summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-10-09 19:30:53 +0200
committerJose <jose@zeroc.com>2012-10-09 19:30:53 +0200
commit4480fa4394674b017557c41d6aa3739e01e70eb5 (patch)
tree07fe1987edcfcd2a31f52f2197a89fece17eb778 /scripts/TestUtil.py
parentICE-4375 - Ice preprocessor macro for .ice files (diff)
downloadice-4480fa4394674b017557c41d6aa3739e01e70eb5.tar.bz2
ice-4480fa4394674b017557c41d6aa3739e01e70eb5.tar.xz
ice-4480fa4394674b017557c41d6aa3739e01e70eb5.zip
.NET CF fixes
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 51e262eb1ac..9934b1eeae6 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -48,6 +48,9 @@ def isCygwin():
def isWin32():
return sys.platform == "win32" or isCygwin()
+
+def isCompactFramework():
+ return isWin32() and ("COMPACT" in os.environ and os.environ["COMPACT"] == "yes")
def isVista():
return isWin32() and sys.getwindowsversion()[0] == 6
@@ -230,7 +233,9 @@ def configurePaths():
#
# On Windows, C# assemblies are found thanks to the .exe.config files.
#
- if isWin32():
+ if isCompactFramework():
+ addPathToEnv("DEVPATH", os.path.join(getIceDir("cs"), "Assemblies", "cf"))
+ elif isWin32():
addPathToEnv("DEVPATH", os.path.join(getIceDir("cs"), "Assemblies"))
else:
addPathToEnv("MONO_PATH", os.path.join(getIceDir("cs"), "Assemblies"))
@@ -666,7 +671,10 @@ def getIceBox():
elif lang == "java":
iceBox = "IceBox.Server"
elif lang == "cs":
- iceBox = os.path.join(getIceDir("cs"), "bin", "iceboxnet")
+ if isCompactFramework():
+ iceBox = os.path.join(getIceDir("cs"), "bin", "cf", "iceboxnet")
+ else:
+ iceBox = os.path.join(getIceDir("cs"), "bin", "iceboxnet")
if iceBox == "":
print("couldn't find icebox executable to run the test")