1 import ./make-test-python.nix {
2 name = "zram-generator";
7 emptyDiskImages = [ 512 ];
15 memoryMax = 10 * 1024 * 1024;
16 writebackDevice = "/dev/vdb";
26 memoryMax = 10 * 1024 * 1024;
32 single.wait_for_unit("systemd-zram-setup@zram0.service")
34 machine.wait_for_unit("systemd-zram-setup@zram0.service")
35 machine.wait_for_unit("systemd-zram-setup@zram1.service")
36 zram = machine.succeed("zramctl --noheadings --raw")
37 swap = machine.succeed("swapon --show --noheadings")
39 assert f"/dev/zram{i} lz4 10M" in zram
40 assert f"/dev/zram{i} partition 10M" in swap