]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: introduce QEMU_MEM
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 11 Jan 2019 14:51:07 +0000 (15:51 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 11 Jan 2019 15:23:53 +0000 (16:23 +0100)
Some tests (mainly under ASan/UBSan) require more than 512M of memory,
so let's make it configurable (but still default to 512M).

test/test-functions

index 80467b526e8607da2824e27511949381b213bb2a..da3c537db03040d64b29924979672b133ac55301 100644 (file)
@@ -15,6 +15,7 @@ TIMED_OUT=  # will be 1 after run_* if *_TIMEOUT is set and test timed out
 [[ "$LOOKS_LIKE_SUSE" ]] && FSTYPE="${FSTYPE:-btrfs}" || FSTYPE="${FSTYPE:-ext4}"
 UNIFIED_CGROUP_HIERARCHY="${UNIFIED_CGROUP_HIERARCHY:-default}"
 EFI_MOUNT="$(bootctl -p 2>/dev/null || echo /boot)"
+QEMU_MEM="${QEMU_MEM:-512M}"
 
 if ! ROOTLIBDIR=$(pkg-config --variable=systemdutildir systemd); then
     echo "WARNING! Cannot determine rootlibdir from pkg-config, assuming /usr/lib/systemd" >&2
@@ -156,7 +157,7 @@ $KERNEL_APPEND \
 
     QEMU_OPTIONS="-smp $QEMU_SMP \
 -net none \
--m 512M \
+-m $QEMU_MEM \
 -nographic \
 -kernel $KERNEL_BIN \
 -drive format=raw,cache=unsafe,file=${TESTDIR}/rootdisk.img \