Skip to content

Commit

Permalink
Testing qemu
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Hutter <[email protected]>
  • Loading branch information
tonyhutter committed Sep 24, 2024
1 parent ccc420a commit e018c16
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/scripts/qemu-6-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,33 @@ 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
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zfs-qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e018c16

Please sign in to comment.