syncthing: declare tests from nixosTests

Changed files
+6 -1
pkgs
applications
networking
syncthing
+6 -1
pkgs/applications/networking/syncthing/default.nix
···
-
{ buildGoModule, stdenv, lib, procps, fetchFromGitHub }:
+
{ buildGoModule, stdenv, lib, procps, fetchFromGitHub, nixosTests }:
let
common = { stname, target, postInstall ? "" }:
···
'';
inherit postInstall;
+
+
passthru.tests = with nixosTests; {
+
init = syncthing-init;
+
relay = syncthing-relay;
+
};
meta = with lib; {
homepage = "https://www.syncthing.net/";