parcellite: add basic test case
This commit is contained in:
parent
d38dbec809
commit
8745cc9a21
|
@ -50,7 +50,7 @@ in {
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${cfg.package}/bin/${cfg.package.pname} ${
|
ExecStart = "${cfg.package}/bin/${cfg.package.pname} ${
|
||||||
lib.concatStringsSep " " cfg.extraOptions
|
escapeShellArgs cfg.extraOptions
|
||||||
}";
|
}";
|
||||||
Restart = "on-abort";
|
Restart = "on-abort";
|
||||||
};
|
};
|
||||||
|
|
|
@ -185,6 +185,7 @@ import nmt {
|
||||||
./modules/services/mpd
|
./modules/services/mpd
|
||||||
./modules/services/mpdris2
|
./modules/services/mpdris2
|
||||||
./modules/services/pantalaimon
|
./modules/services/pantalaimon
|
||||||
|
./modules/services/parcellite
|
||||||
./modules/services/pbgopy
|
./modules/services/pbgopy
|
||||||
./modules/services/picom
|
./modules/services/picom
|
||||||
./modules/services/playerctld
|
./modules/services/playerctld
|
||||||
|
|
1
tests/modules/services/parcellite/default.nix
Normal file
1
tests/modules/services/parcellite/default.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{ parcellite = ./parcellite.nix; }
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=@parcellite@/bin/parcellite '--no-icon'
|
||||||
|
Restart=on-abort
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
After=graphical-session-pre.target
|
||||||
|
After=tray.target
|
||||||
|
Description=Lightweight GTK+ clipboard manager
|
||||||
|
PartOf=graphical-session.target
|
||||||
|
Requires=tray.target
|
18
tests/modules/services/parcellite/parcellite.nix
Normal file
18
tests/modules/services/parcellite/parcellite.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.parcellite = {
|
||||||
|
enable = true;
|
||||||
|
package = config.lib.test.mkStubPackage {
|
||||||
|
name = "parcellite";
|
||||||
|
outPath = "@parcellite@";
|
||||||
|
};
|
||||||
|
extraOptions = [ "--no-icon" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nmt.script = ''
|
||||||
|
assertFileContent \
|
||||||
|
"home-files/.config/systemd/user/parcellite.service" \
|
||||||
|
${./parcellite-expected.service}
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue