diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-01-11 15:51:07 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-01-11 16:23:53 +0100 |
commit | 3071b3ff6e803d1a4f32c0a66a431e9a2ea6a1a2 (patch) | |
tree | 684be420560645c95f54d8ecdce08524788345be /test | |
parent | test: drop service masking in TEST-01-BASIC (diff) | |
download | systemd-3071b3ff6e803d1a4f32c0a66a431e9a2ea6a1a2.tar.xz systemd-3071b3ff6e803d1a4f32c0a66a431e9a2ea6a1a2.zip |
test: introduce QEMU_MEM
Some tests (mainly under ASan/UBSan) require more than 512M of memory,
so let's make it configurable (but still default to 512M).
Diffstat (limited to 'test')
-rw-r--r-- | test/test-functions | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions index 80467b526e..da3c537db0 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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 \ |