diff options
author | Jose <jose@zeroc.com> | 2012-10-09 19:30:53 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-10-09 19:30:53 +0200 |
commit | 4480fa4394674b017557c41d6aa3739e01e70eb5 (patch) | |
tree | 07fe1987edcfcd2a31f52f2197a89fece17eb778 /scripts/TestUtil.py | |
parent | ICE-4375 - Ice preprocessor macro for .ice files (diff) | |
download | ice-4480fa4394674b017557c41d6aa3739e01e70eb5.tar.bz2 ice-4480fa4394674b017557c41d6aa3739e01e70eb5.tar.xz ice-4480fa4394674b017557c41d6aa3739e01e70eb5.zip |
.NET CF fixes
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 12 |
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") |