mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
19 lines
472 B
Nix
19 lines
472 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
|
|
name = "activation-var";
|
|
|
|
meta.maintainers = with lib.maintainers; [ nikstur ];
|
|
|
|
nodes.machine = { };
|
|
|
|
testScript = ''
|
|
assert machine.succeed("stat -c '%a' /var/tmp") == "1777\n"
|
|
assert machine.succeed("stat -c '%a' /var/empty") == "555\n"
|
|
assert machine.succeed("stat -c '%U' /var/empty") == "root\n"
|
|
assert machine.succeed("stat -c '%G' /var/empty") == "root\n"
|
|
assert "i" in machine.succeed("lsattr -d /var/empty")
|
|
'';
|
|
}
|