Loading nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,7 @@ in { bootspec = handleTestOn ["x86_64-linux"] ./bootspec.nix {}; boot-stage1 = handleTest ./boot-stage1.nix {}; borgbackup = handleTest ./borgbackup.nix {}; borgmatic = handleTest ./borgmatic.nix {}; botamusique = handleTest ./botamusique.nix {}; bpf = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bpf.nix {}; bpftune = handleTest ./bpftune.nix {}; Loading nixos/tests/borgmatic.nix 0 → 100644 +24 −0 Original line number Diff line number Diff line import ./make-test-python.nix ({ pkgs, ... }: { name = "borgmatic"; nodes.machine = { ... }: { services.borgmatic = { enable = true; settings = { source_directories = [ "/home" ]; repositories = [ { label = "local"; path = "/var/backup"; } ]; keep_daily = 7; }; }; }; testScript = '' machine.succeed("borgmatic rcreate -e none") machine.succeed("borgmatic") ''; }) Loading
nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,7 @@ in { bootspec = handleTestOn ["x86_64-linux"] ./bootspec.nix {}; boot-stage1 = handleTest ./boot-stage1.nix {}; borgbackup = handleTest ./borgbackup.nix {}; borgmatic = handleTest ./borgmatic.nix {}; botamusique = handleTest ./botamusique.nix {}; bpf = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bpf.nix {}; bpftune = handleTest ./bpftune.nix {}; Loading
nixos/tests/borgmatic.nix 0 → 100644 +24 −0 Original line number Diff line number Diff line import ./make-test-python.nix ({ pkgs, ... }: { name = "borgmatic"; nodes.machine = { ... }: { services.borgmatic = { enable = true; settings = { source_directories = [ "/home" ]; repositories = [ { label = "local"; path = "/var/backup"; } ]; keep_daily = 7; }; }; }; testScript = '' machine.succeed("borgmatic rcreate -e none") machine.succeed("borgmatic") ''; })