summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2015-03-09 13:10:23 -0230
committerDwayne Boone <dwayne@zeroc.com>2015-03-09 13:10:23 -0230
commit71aaf8b3dc70aa746f5fb904d2a90fdd4e9d2f49 (patch)
tree1251bab835f44055d92e236d3319b40bd1d26aac /scripts/TestUtil.py
parentICE-6201 remove java applet demo (diff)
downloadice-71aaf8b3dc70aa746f5fb904d2a90fdd4e9d2f49.tar.bz2
ice-71aaf8b3dc70aa746f5fb904d2a90fdd4e9d2f49.tar.xz
ice-71aaf8b3dc70aa746f5fb904d2a90fdd4e9d2f49.zip
ICE-6342 scripts/TestUtil.py and demoscript/Util.py set java.library.path to /usr/lib[64] always
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 5414852388b..59953bdb683 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1068,7 +1068,7 @@ def getCommandLine(exe, config, options = "", interpreterOptions = ""):
output.write("ruby")
if interpreterOptions:
output.write(" " + interpreterOptions)
- output.write(' "%s" ' % exe)
+ output.write(' "%s" ' % exe)
elif config.silverlight and config.lang == "cs" and config.type == "client":
xap = "obj/sl/%s.xap" % os.path.basename(os.getcwd())
if os.environ.get("PROCESSOR_ARCHITECTURE") == "AMD64" or os.environ.get("PROCESSOR_ARCHITEW6432") == "":
@@ -1750,9 +1750,15 @@ def getJavaLibraryPath():
else:
return "-Djava.library.path=/usr/local/opt/berkeley-db53/lib "
elif isRhel() or isSles():
- return "-Djava.library.path=%s " % ("/usr/lib64" if x64 else "/usr/lib")
+ libpath = ("/usr/lib64" if x64 else "/usr/lib")
+ if "LD_LIBRARY_PATH" in os.environ:
+ libpath = os.environ["LD_LIBRARY_PATH"] + ":" + libpath
+ return "-Djava.library.path=%s " % libpath
elif isUbuntu():
- return "-Djava.library.path=%s " % ("/usr/lib/x86_64-linux-gnu" if x64 else "/usr/lib/i386-linux-gnu")
+ libpath = ("/usr/lib/x86_64-linux-gnu" if x64 else "/usr/lib/i386-linux-gnu")
+ if "LD_LIBRARY_PATH" in os.environ:
+ libpath = os.environ["LD_LIBRARY_PATH"] + ":" + libpath
+ return "-Djava.library.path=%s " % libpath
return None
def getServiceDir():
@@ -1771,7 +1777,7 @@ def getTestEnv(lang, testdir):
#
# Jar files from the source of binary distribution
#
- iceJARs = ["ice", "glacier2", "freeze", "icebox", "icestorm", "icegrid", "icepatch2", "icediscovery",
+ iceJARs = ["ice", "glacier2", "freeze", "icebox", "icestorm", "icegrid", "icepatch2", "icediscovery",
"icelocatordiscovery"]
jarSuffix = "-" + iceVersion + ".jar"