1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

Regression test for blkio functionality

This commit is contained in:
Eelco Dolstra 2013-09-17 16:16:59 +02:00
parent 9f94a6ffaa
commit 58e40f84e1

View file

@ -42,6 +42,11 @@
subtest "poweroff_cmd", sub {
$machine->succeed("[ -x \"\$(cat /proc/sys/kernel/poweroff_cmd)\" ]")
};
# Test whether the blkio controller is properly enabled.
subtest "blkio-cgroup", sub {
$machine->succeed("[ -n \"\$(cat /sys/fs/cgroup/blkio/blkio.sectors)\" ]")
};
'';
}