mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-15 07:18:29 -04:00
scripts/run_tests.sh: show ldd output if binary isn't dynamically linked
This commit is contained in:
parent
952329aeb9
commit
6d66819651
@ -210,9 +210,12 @@ test_use_shared_lib() {
|
||||
fail "Binary should be statically linked by default"
|
||||
fi
|
||||
$MAKE USE_SHARED_LIB=1 all check > /dev/null
|
||||
if ! ldd gzip | grep -q 'libdeflate.so'; then
|
||||
ldd gzip > "$TMPDIR/ldd.out"
|
||||
if ! grep -q 'libdeflate.so' "$TMPDIR/ldd.out"; then
|
||||
cat 1>&2 "$TMPDIR/ldd.out"
|
||||
fail "Binary isn't dynamically linked"
|
||||
fi
|
||||
rm "$TMPDIR/ldd.out"
|
||||
}
|
||||
|
||||
install_uninstall_tests() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user