1 import ./make-test-python.nix ({ pkgs, ...} : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ evils ];
7 nodes.machine = { pkgs, ... }: {
8 imports = [ ../modules/profiles/minimal.nix ];
9 services.tuptime.enable = true;
16 machine.wait_for_unit("multi-user.target")
17 machine.succeed("tuptime | grep 'System startups:[[:blank:]]*1'")
18 machine.succeed("tuptime | grep 'System uptime:[[:blank:]]*100.0%'")
21 # restart machine and see if it correctly reports the reboot
23 machine.wait_for_unit("multi-user.target")
24 machine.succeed("tuptime | grep 'System startups:[[:blank:]]*2'")
25 machine.succeed("tuptime | grep 'System shutdowns:[[:blank:]]*1 ok'")