set_ld_library_path_0.27

v0.27.3
Robin Mills 5 years ago
parent 3f1a6a509b
commit d5c6391c5f

@ -47,7 +47,7 @@ all: test
top_srcdir = .. top_srcdir = ..
# Initialisations # Initialisations
SHELL = /bin/sh SHELL = /bin/bash
.SUFFIXES: .SUFFIXES:
@ -137,15 +137,7 @@ unit_test :
-@./$@.sh -@./$@.sh
tests: tests:
-@if [ -e $$EXIV2_BINDIR/../Makefile ]; then \ make unit_test bash_tests python_tests version_test
-@./$@.sh ; \
else \
make unit_test ; \
make bash_tests ; \
make python_tests ; \
make version_test ; \
fi
bash_tests: bash_tests:
@echo @echo
@ -167,7 +159,7 @@ python_tests:
@echo @echo
@echo ---- Running python_tests ---- @echo ---- Running python_tests ----
@echo @echo
-( cd ../tests ; if [ ! -z $$VERBOSE ]; then verbose=--verbose ;fi ; python3 runner.py $$verbose ) -( source functions.source ; cd ../tests ; if [ ! -z $$VERBOSE ]; then verbose=--verbose ;fi ; python3 runner.py $$verbose )
testv: testv:
@for t in /video ; do \ @for t in /video ; do \

@ -478,20 +478,6 @@ prepareTest()
export LC_ALL=C export LC_ALL=C
export TZ=BST-1 export TZ=BST-1
##
# initialize globals
this=$(basename $0 .sh)
here=$PWD
datapath="../data"
testdir="$here/tmp"
datadir="../data"
if [ -z "$EXIV2_BINDIR" ] ; then
bin="$here/../build/bin/"
else
bin="$EXIV2_BINDIR/"
fi
os=$(uname) os=$(uname)
if [ "${os:0:4}" == "CYGW" ]; then if [ "${os:0:4}" == "CYGW" ]; then
export PLATFORM=cygwin export PLATFORM=cygwin
@ -509,6 +495,29 @@ prepareTest()
exe=$EXIV2_EXT exe=$EXIV2_EXT
fi fi
##
# initialize globals
this=$(basename $0 .sh)
here=$PWD
datapath="../data"
testdir="$here/tmp"
datadir="../data"
if [ -z "$EXIV2_BINDIR" ] ; then
bin="$here/../build/bin/"
else
bin="$EXIV2_BINDIR/"
fi
# update PATHs to ensure we load the the correct dynamlic library
if [ $PLATFORM == 'mingw' -a $PLATFORM == 'cygwin' ]; then
export PATH="$bin:$PATH"
elif [ 'PLATFORM' == 'Darwin' ]; then
export DYLD_LIBRARY_PATH="$bin/../lib:$DYLD_LIBRARY_PATH"
else
export LD_LIBRARY_PATH="$bin/../lib:$LD_LIBRARY_PATH"
fi
if [ "$PLATFORM" == cygwin ]; then if [ "$PLATFORM" == cygwin ]; then
# We need a private version of diff for linux compatibility # We need a private version of diff for linux compatibility
diff() diff()

Loading…
Cancel
Save