mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
22 lines
497 B
Nix
22 lines
497 B
Nix
|
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
||
|
name = "containers-unified-hierarchy";
|
||
|
meta = {
|
||
|
maintainers = with lib.maintainers; [ farnoy ];
|
||
|
};
|
||
|
|
||
|
nodes.machine = { ... }: {
|
||
|
containers = {
|
||
|
test-container = {
|
||
|
autoStart = true;
|
||
|
config = { };
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
machine.wait_for_unit("default.target")
|
||
|
|
||
|
machine.succeed("echo 'stat -fc %T /sys/fs/cgroup/ | grep cgroup2fs' | nixos-container root-login test-container")
|
||
|
'';
|
||
|
})
|