Fix LD_LIBRARY_PATH order when running tests
build/lib needs to be first in case LD_LIBRARY_PATH contains another Cantera installation. Resolves #310.
This commit is contained in:
parent
10981277ae
commit
a7db9a7411
2 changed files with 2 additions and 9 deletions
|
|
@ -30,12 +30,8 @@ localenv['ENV']['CANTERA_DATA'] = Dir('#build/data').abspath
|
||||||
|
|
||||||
PASSED_FILES = {}
|
PASSED_FILES = {}
|
||||||
|
|
||||||
# Needed for Intel runtime libraries when compiling with ICC
|
|
||||||
# Add build/lib in order to find Cantera shared library
|
# Add build/lib in order to find Cantera shared library
|
||||||
if localenv['ENV'].get('LD_LIBRARY_PATH'):
|
localenv.PrependENVPath('LD_LIBRARY_PATH', Dir('#build/lib').abspath)
|
||||||
localenv['ENV']['LD_LIBRARY_PATH'] += os.pathsep + Dir('#build/lib').abspath
|
|
||||||
else:
|
|
||||||
localenv['ENV']['LD_LIBRARY_PATH'] = Dir('#build/lib').abspath
|
|
||||||
|
|
||||||
def addTestProgram(subdir, progName, env_vars={}):
|
def addTestProgram(subdir, progName, env_vars={}):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,7 @@ else:
|
||||||
localenv['ENV']['CANTERA_DATA'] = pjoin(os.getcwd(), '..', 'build', 'data')
|
localenv['ENV']['CANTERA_DATA'] = pjoin(os.getcwd(), '..', 'build', 'data')
|
||||||
|
|
||||||
# Add build/lib in order to find Cantera shared library
|
# Add build/lib in order to find Cantera shared library
|
||||||
if localenv['ENV'].get('LD_LIBRARY_PATH'):
|
localenv.PrependENVPath('LD_LIBRARY_PATH', Dir('#build/lib').abspath)
|
||||||
localenv['ENV']['LD_LIBRARY_PATH'] += os.pathsep + Dir('#build/lib').abspath
|
|
||||||
else:
|
|
||||||
localenv['ENV']['LD_LIBRARY_PATH'] = Dir('#build/lib').abspath
|
|
||||||
|
|
||||||
PASSED_FILES = {}
|
PASSED_FILES = {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue