Unverified Commit a71502af authored by Finn Landweber's avatar Finn Landweber
Browse files

nixos/borgmatic: added test

parent 5adb86fd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 {};
+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")
  '';
})