mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
39e1753673
The `dracut_install` is a misnomer, since the systemd integration test suite is based on the original dracut's test suite, and not all the references to dracut has been edited out. Let's fix that.
23 lines
456 B
Bash
Executable File
23 lines
456 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
TEST_DESCRIPTION="systemd-oomd Memory Pressure Test"
|
|
IMAGE_NAME="oomd"
|
|
|
|
# shellcheck source=test/test-functions
|
|
. "${TEST_BASE_DIR:?}/test-functions"
|
|
|
|
test_append_files() {
|
|
# Create a swap device
|
|
(
|
|
mkswap "${LOOPDEV:?}p2"
|
|
image_install swapon swapoff
|
|
|
|
cat >>"${initdir:?}/etc/fstab" <<EOF
|
|
UUID=$(blkid -o value -s UUID "${LOOPDEV}p2") none swap defaults 0 0
|
|
EOF
|
|
)
|
|
}
|
|
|
|
do_test "$@" 55
|