mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
test: increase image size when static library or standalone binaries are installed
This commit is contained in:
parent
84e492cdba
commit
853401a6bc
@ -1004,6 +1004,12 @@ create_empty_image() {
|
||||
fi
|
||||
|
||||
local size=500
|
||||
if meson configure "${BUILD_DIR:?}" | grep 'static-lib\|standalone-binaries' | awk '{ print $2 }' | grep -q 'true'; then
|
||||
size=$((size+=200))
|
||||
fi
|
||||
if meson configure "${BUILD_DIR:?}" | grep 'link-.*-shared' | awk '{ print $2 }' | grep -q 'false'; then
|
||||
size=$((size+=200))
|
||||
fi
|
||||
if [[ "$STRIP_BINARIES" = "no" ]]; then
|
||||
size=$((4 * size))
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user