]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: increase image size when static library or standalone binaries are installed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 May 2021 04:28:19 +0000 (13:28 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 May 2021 09:28:00 +0000 (11:28 +0200)
test/test-functions

index 65e3c96539252bc3a940424ed5a61dc507dea9b1..87b82db4219149bbc7a03307da83a2d29d1392de 100644 (file)
@@ -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