summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-11-28 15:34:17 +0100
committerJose <jose@zeroc.com>2014-11-28 15:34:17 +0100
commit47e05ffb78bb4542bb1714afc7d6439f1ba2475e (patch)
tree42bc6de9433213722c0ca688e802aff637ad8bd3 /scripts/TestUtil.py
parentDemoscript fixes, add ThirdParty bin to path when required (diff)
downloadice-47e05ffb78bb4542bb1714afc7d6439f1ba2475e.tar.bz2
ice-47e05ffb78bb4542bb1714afc7d6439f1ba2475e.tar.xz
ice-47e05ffb78bb4542bb1714afc7d6439f1ba2475e.zip
RPATH build fixes
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 9012e29b0fc..c35f8a0428d 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1739,6 +1739,7 @@ def getTestEnv(lang, testdir):
print("warning: could not detect Ice Third party installation.")
else:
addClasspath(os.path.join("/" "usr" "share", "java", "lib", "db.jar"), env)
+
#
# If Ice is installed from RPMs:
# Set the CLASSPATH for Java.
@@ -1753,8 +1754,15 @@ def getTestEnv(lang, testdir):
addPathToEnv("NODE_PATH", os.path.join(testdir), env)
return env # That's it, we're done!
+ #
+ # For Win32 we always need to add bin dir to path
+ # for others we just need to add it for scripting
+ # languages that use C++ extensions (py, ruby, php)
+ #
if isWin32():
addLdPath(getCppLibDir(), env)
+ elif lang in ["py", "rb", "php"]:
+ addLdPath(getCppLibDir(), env)
if lang == "javae":
javaDir = os.path.join(getIceDir("javae", testdir), "jdk", "lib")