Use LD_LIBRARY_PATH to find the library to test

This commit is contained in:
Pierre Pronchery 2015-08-23 15:59:57 +02:00
parent 725d9150f8
commit 41d0ace2fe

View File

@ -42,7 +42,7 @@ _run()
echo -n "$test:" 1>&2 echo -n "$test:" 1>&2
(echo (echo
echo "Testing: $test" "$@" echo "Testing: $test" "$@"
"$OBJDIR$test" "$@") 2>&1 LD_LIBRARY_PATH="$OBJDIR../src" "$OBJDIR$test" "$@") 2>&1
res=$? res=$?
if [ $res -ne 0 ]; then if [ $res -ne 0 ]; then
echo "Test: $test$sep$@: FAIL (error $res)" echo "Test: $test$sep$@: FAIL (error $res)"