mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
nixos/tests/music-assistant: init
This commit is contained in:
parent
76442766ea
commit
0abdf47358
@ -597,6 +597,7 @@ in {
|
||||
# Fails on aarch64-linux at the PDF creation step - need to debug this on an
|
||||
# aarch64 machine..
|
||||
musescore = handleTestOn ["x86_64-linux"] ./musescore.nix {};
|
||||
music-assistant = runTest ./music-assistant.nix;
|
||||
munin = handleTest ./munin.nix {};
|
||||
mutableUsers = handleTest ./mutable-users.nix {};
|
||||
mycelium = handleTest ./mycelium {};
|
||||
|
21
nixos/tests/music-assistant.nix
Normal file
21
nixos/tests/music-assistant.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
name = "music-assistant";
|
||||
meta.maintainers = with lib.maintainers; [ hexa ];
|
||||
|
||||
nodes.machine = {
|
||||
services.music-assistant = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("music-assistant.service")
|
||||
machine.wait_until_succeeds("curl --fail http://localhost:8095")
|
||||
machine.log(machine.succeed("systemd-analyze security music-assistant.service | grep -v ✓"))
|
||||
'';
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, ffmpeg-headless
|
||||
, nixosTests
|
||||
, substituteAll
|
||||
, providers ? [ ]
|
||||
}:
|
||||
@ -99,6 +100,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
providerPackages
|
||||
providerNames
|
||||
;
|
||||
tests = nixosTests.music-assistant;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user