From f7494131f961ce7ff177542a41d18744a37f0cbe Mon Sep 17 00:00:00 2001 From: Tony Hutter Date: Tue, 24 Sep 2024 14:11:13 -0700 Subject: [PATCH] Testing qemu Signed-off-by: Tony Hutter --- .github/workflows/scripts/qemu-6-tests.sh | 19 ++++++++++++++++++- .github/workflows/zfs-qemu.yml | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scripts/qemu-6-tests.sh b/.github/workflows/scripts/qemu-6-tests.sh index fac953c8fa56..5d511a7cf65a 100755 --- a/.github/workflows/scripts/qemu-6-tests.sh +++ b/.github/workflows/scripts/qemu-6-tests.sh @@ -85,17 +85,34 @@ case "$1" in sudo mv -f /tmp/*.txt /var/tmp sudo -E modprobe zfs TDIR="/usr/share/zfs" + + sudo fallocate -l 16G /swapfile || true + sudo chmod 600 /swapfile || true + sudo mkswap /swapfile || true + sudo swapon /swapfile || true ;; esac # run functional testings and save exitcode cd /var/tmp -TAGS=$2/$3 +# TAGS=$2/$3 +TAGS=raidz sudo dmesg -c > dmesg-prerun.txt mount > mount.txt + +echo "--- Swap info ---" +# sudo bash -c 'echo 1 > /sys/module/zswap/parameters/enabled' || true +echo "SWAPON:" +sudo swapon --show || true +cat /proc/swaps || true +cat /proc/meminfo || true +echo "---" df -h > df-prerun.txt $TDIR/zfs-tests.sh -vK -s 3GB -T $TAGS RV=$? + +echo "-- zswap-post --" +# grep -r . /sys/kernel/debug/zswap || true df -h > df-postrun.txt echo $RV > tests-exitcode.txt sync diff --git a/.github/workflows/zfs-qemu.yml b/.github/workflows/zfs-qemu.yml index 67d915adfef5..08e2ec27d2f4 100644 --- a/.github/workflows/zfs-qemu.yml +++ b/.github/workflows/zfs-qemu.yml @@ -17,7 +17,7 @@ jobs: # all: # os: [almalinux8, almalinux9, archlinux, centos-stream9, fedora39, fedora40, debian11, debian12, freebsd13, freebsd13r, freebsd14, freebsd14r, freebsd15, ubuntu20, ubuntu22, ubuntu24] # openzfs: - os: [almalinux8, almalinux9, centos-stream9, debian11, debian12, fedora39, fedora40, freebsd13, freebsd13r, freebsd14, freebsd14r, ubuntu20, ubuntu22, ubuntu24] + os: [fedora40] runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4