From: Yu Watanabe Date: Thu, 6 May 2021 04:28:19 +0000 (+0900) Subject: test: increase image size when static library or standalone binaries are installed X-Git-Tag: v249-rc1~289 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=853401a6bc3c7389ed3e572119eb91d40eb9e449;p=thirdparty%2Fsystemd.git test: increase image size when static library or standalone binaries are installed --- diff --git a/test/test-functions b/test/test-functions index 65e3c965392..87b82db4219 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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