mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
test: Add cache specific test
This commit is contained in:
parent
071306e76a
commit
cf5d451adc
1 changed files with 9 additions and 0 deletions
|
@ -16,6 +16,15 @@ diskoLib.testLib.makeDiskoTest {
|
||||||
out == expected_value
|
out == expected_value
|
||||||
), f"Expected {property}={expected_value} on {ds}, got: {out}"
|
), f"Expected {property}={expected_value} on {ds}, got: {out}"
|
||||||
|
|
||||||
|
# These fields are 0 if l2arc is disabled
|
||||||
|
assert (
|
||||||
|
machine.succeed(
|
||||||
|
"cat /proc/spl/kstat/zfs/arcstats"
|
||||||
|
" | grep '^l2_' | tr -s ' '"
|
||||||
|
" | cut -s -d ' ' -f3 | uniq"
|
||||||
|
).strip() != "0"
|
||||||
|
), "Excepted cache to be utilized."
|
||||||
|
|
||||||
assert_property("zroot", "compression", "zstd")
|
assert_property("zroot", "compression", "zstd")
|
||||||
assert_property("zroot/zfs_fs", "com.sun:auto-snapshot", "true")
|
assert_property("zroot/zfs_fs", "com.sun:auto-snapshot", "true")
|
||||||
assert_property("zroot/zfs_fs", "compression", "zstd")
|
assert_property("zroot/zfs_fs", "compression", "zstd")
|
||||||
|
|
Loading…
Reference in a new issue