mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-15 13:07:45 +00:00
synapse-bt: Add basic test
This commit is contained in:
parent
5d272ddaf2
commit
6d5dcd60eb
2 changed files with 19 additions and 0 deletions
|
@ -104,6 +104,7 @@ let
|
||||||
tests.services-ofborg = makeTest ./tests/services-ofborg.nix;
|
tests.services-ofborg = makeTest ./tests/services-ofborg.nix;
|
||||||
tests.services-offlineimap = makeTest ./tests/services-offlineimap.nix;
|
tests.services-offlineimap = makeTest ./tests/services-offlineimap.nix;
|
||||||
tests.services-skhd = makeTest ./tests/services-skhd.nix;
|
tests.services-skhd = makeTest ./tests/services-skhd.nix;
|
||||||
|
tests.services-synapse-bt = makeTest ./tests/services-synapse-bt.nix;
|
||||||
tests.services-synergy = makeTest ./tests/services-synergy.nix;
|
tests.services-synergy = makeTest ./tests/services-synergy.nix;
|
||||||
tests.services-privoxy = makeTest ./tests/services-privoxy.nix;
|
tests.services-privoxy = makeTest ./tests/services-privoxy.nix;
|
||||||
tests.system-defaults-write = makeTest ./tests/system-defaults-write.nix;
|
tests.system-defaults-write = makeTest ./tests/system-defaults-write.nix;
|
||||||
|
|
18
tests/services-synapse-bt.nix
Normal file
18
tests/services-synapse-bt.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
synapse-bt = pkgs.runCommand "synapse-bt-0.0.0" {} "mkdir $out";
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
services.synapse-bt.enable = true;
|
||||||
|
services.synapse-bt.package = synapse-bt;
|
||||||
|
|
||||||
|
test = ''
|
||||||
|
echo >&2 "checking synapse-bt service in ~/Library/LaunchAgents"
|
||||||
|
grep "org.nixos.synapse-bt" ${config.out}/user/Library/LaunchAgents/org.nixos.synapse-bt.plist
|
||||||
|
grep "${synapse-bt}/bin/synapse" ${config.out}/user/Library/LaunchAgents/org.nixos.synapse-bt.plist
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue