nixos/tests/music-assistant: init

This commit is contained in:
Martin Weinelt 2024-05-18 01:10:54 +02:00
parent 76442766ea
commit 0abdf47358
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
3 changed files with 24 additions and 0 deletions

View File

@ -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 {};

View 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 "))
'';
}

View File

@ -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; {