Skip to content

Commit

Permalink
Test scripts: QFS test: link all QFS shared libs into single director…
Browse files Browse the repository at this point in the history
…y in order to make JNI work.
  • Loading branch information
mikeov committed Dec 13, 2023
1 parent e24f4d3 commit 4020847
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test-scripts/qfstest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,25 @@ if [ x"`uname`" = x'Darwin' ]; then
# integrity system protection.
DYLD_LIBRARY_PATH="${LD_LIBRARY_PATH}${DYLD_LIBRARY_PATH+:$DYLD_LIBRARY_PATH}"
export DYLD_LIBRARY_PATH
# Symlink all relevant libs into single directory to make java work.
if [ x"$accessdir" != x ]; then
qfsshareddir=$testdir/qfsshared
mkdir "$qfsshareddir" || exit
(
cd "$qfsshareddir" || exit
if [ x"`uname`" = x'Darwin' ]; then
glob="*.dylib"
else
glob="*.so*"
fi
echo "$accessdir:$qfsshareddirs" | tr ':' '\n' \
| while read n; do
ls "$n"/$glob>/dev/null 2>&1 || continue
ln -s "$n"/$glob .
done
) || exit
accessdir=$qfsshareddir
fi
fi

cabundlefileos='/etc/pki/tls/certs/ca-bundle.crt'
Expand Down

0 comments on commit 4020847

Please sign in to comment.