test: update integration tests.

This commit is contained in:
Alexandre Pujol 2025-03-28 23:31:05 +01:00
parent 8e2a7e8068
commit 1204e29fb9
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
9 changed files with 192 additions and 8 deletions

View file

@ -0,0 +1,18 @@
#!/usr/bin/env bats
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
load ../common
@test "zramctl: Check if zram is enabled; enable it if needed" {
lsmod | grep -i zram || sudo modprobe zram
}
@test "zramctl: Find and initialize the next free zram device to a 1 GB virtual drive using LZ4 compression" {
sudo zramctl --find --size 1GB --algorithm lz4
}
@test "zramctl: List currently initialized devices" {
sudo zramctl
}