diff options
author | Jose <jose@zeroc.com> | 2015-08-04 20:51:10 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-08-04 20:51:10 +0200 |
commit | 835a6cfbb8489c677cc3257f4dac8e31eb68c4bb (patch) | |
tree | 163794a8dc83e4eb7e04cc14fb0077231f3dc99e /scripts/TestUtil.py | |
parent | WinRT build instructions updates (diff) | |
download | ice-835a6cfbb8489c677cc3257f4dac8e31eb68c4bb.tar.bz2 ice-835a6cfbb8489c677cc3257f4dac8e31eb68c4bb.tar.xz ice-835a6cfbb8489c677cc3257f4dac8e31eb68c4bb.zip |
Test script env fixes
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index daddea6316a..ea67a4c0927 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -1867,7 +1867,7 @@ def getTestEnv(lang, testdir): if iceHome: addClasspath(os.path.join(getIceDir("java", testdir), "lib", "db.jar"), env) else: - mode = getBuildMode(testdir) if lang == "cpp" else "Release" + mode = getBuildMode(os.path.join(getIceDir("cpp"), "bin")) configuration = "Debug" if mode == "debug" else "Release" platform = "x64" if x64 else "Win32" pkgdir = os.path.join(getIceDir("cpp"), "third-party-packages") @@ -1887,11 +1887,14 @@ def getTestEnv(lang, testdir): platformtoolset = "v140" # - # For Debug builds we need to add Release binaries to path to be able to db_xxx tools + # For Debug builds we need to add Release binaries to path to be able to use db_xxx tools and + # bzip2 to be able to use protocol compression with .NET # if configuration == "Debug": addPathToEnv("PATH", os.path.join(pkgdir, "berkeley.db.{0}".format(platformtoolset), pkgsubdir, "Release"), env) + addPathToEnv("PATH", os.path.join(pkgdir, "bzip2.{0}".format(platformtoolset), pkgsubdir, + "Release"), env) for package in ["berkeley.db.{0}", "bzip2.{0}", "expat.{0}"]: addPathToEnv("PATH", os.path.join(pkgdir, package.format(platformtoolset), pkgsubdir, |