Loading nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -720,6 +720,7 @@ in { switchTest = handleTest ./switch-test.nix {}; sympa = handleTest ./sympa.nix {}; syncthing = handleTest ./syncthing.nix {}; syncthing-no-settings = handleTest ./syncthing-no-settings.nix {}; syncthing-init = handleTest ./syncthing-init.nix {}; syncthing-relay = handleTest ./syncthing-relay.nix {}; systemd = handleTest ./systemd.nix {}; Loading nixos/tests/syncthing-no-settings.nix 0 → 100644 +18 −0 Original line number Diff line number Diff line import ./make-test-python.nix ({ lib, pkgs, ... }: { name = "syncthing"; meta.maintainers = with pkgs.lib.maintainers; [ chkno ]; nodes = { a = { environment.systemPackages = with pkgs; [ curl libxml2 syncthing ]; services.syncthing = { enable = true; }; }; }; # Test that indeed a syncthing-init.service systemd service is not created. # testScript = /* python */ '' a.succeed("systemctl list-unit-files | awk '$1 == \"syncthing-init.service\" {exit 1;}'") ''; }) Loading
nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -720,6 +720,7 @@ in { switchTest = handleTest ./switch-test.nix {}; sympa = handleTest ./sympa.nix {}; syncthing = handleTest ./syncthing.nix {}; syncthing-no-settings = handleTest ./syncthing-no-settings.nix {}; syncthing-init = handleTest ./syncthing-init.nix {}; syncthing-relay = handleTest ./syncthing-relay.nix {}; systemd = handleTest ./systemd.nix {}; Loading
nixos/tests/syncthing-no-settings.nix 0 → 100644 +18 −0 Original line number Diff line number Diff line import ./make-test-python.nix ({ lib, pkgs, ... }: { name = "syncthing"; meta.maintainers = with pkgs.lib.maintainers; [ chkno ]; nodes = { a = { environment.systemPackages = with pkgs; [ curl libxml2 syncthing ]; services.syncthing = { enable = true; }; }; }; # Test that indeed a syncthing-init.service systemd service is not created. # testScript = /* python */ '' a.succeed("systemctl list-unit-files | awk '$1 == \"syncthing-init.service\" {exit 1;}'") ''; })