summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-11-28 15:41:22 +0100
committerJose <jose@zeroc.com>2014-11-28 15:41:22 +0100
commitf275d8515e2ba5594020e8a19b868f3db58bbd2e (patch)
treef31066ae7e392afabf4f7a1749ec11ad3e72fcdd /scripts/TestUtil.py
parentUbuntu package updates (diff)
downloadice-f275d8515e2ba5594020e8a19b868f3db58bbd2e.tar.bz2
ice-f275d8515e2ba5594020e8a19b868f3db58bbd2e.tar.xz
ice-f275d8515e2ba5594020e8a19b868f3db58bbd2e.zip
Test/Demo script fixes
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index c35f8a0428d..d9931d42e33 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1734,6 +1734,15 @@ def getTestEnv(lang, testdir):
else:
thirdPartyHome = getThirdpartyHome()
if thirdPartyHome:
+ #
+ # Add third party home to PATH, to use db_xx tools
+ #
+ if isWin32():
+ addPathToEnv("PATH", os.path.join(getThirdpartyHome(), "bin\\x64" if x64 else "bin"), env)
+ if getCppCompiler() == "VC110":
+ addPathToEnv("PATH", os.path.join(getThirdpartyHome(), "bin\\vc110\\x64" if x64 else "bin\\vc110"), env)
+ elif isDarwin():
+ addPathToEnv("PATH", os.path.join(getThirdpartyHome(), "bin"), env)
addClasspath(os.path.join(thirdPartyHome, "lib", "db.jar"), env)
else:
print("warning: could not detect Ice Third party installation.")