mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/tests/music-assistant: init
This commit is contained in:
parent
76442766ea
commit
0abdf47358
3 changed files with 24 additions and 0 deletions
|
@ -597,6 +597,7 @@ in {
|
||||||
# Fails on aarch64-linux at the PDF creation step - need to debug this on an
|
# Fails on aarch64-linux at the PDF creation step - need to debug this on an
|
||||||
# aarch64 machine..
|
# aarch64 machine..
|
||||||
musescore = handleTestOn ["x86_64-linux"] ./musescore.nix {};
|
musescore = handleTestOn ["x86_64-linux"] ./musescore.nix {};
|
||||||
|
music-assistant = runTest ./music-assistant.nix;
|
||||||
munin = handleTest ./munin.nix {};
|
munin = handleTest ./munin.nix {};
|
||||||
mutableUsers = handleTest ./mutable-users.nix {};
|
mutableUsers = handleTest ./mutable-users.nix {};
|
||||||
mycelium = handleTest ./mycelium {};
|
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
|
, python3
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, ffmpeg-headless
|
, ffmpeg-headless
|
||||||
|
, nixosTests
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, providers ? [ ]
|
, providers ? [ ]
|
||||||
}:
|
}:
|
||||||
|
@ -99,6 +100,7 @@ python.pkgs.buildPythonApplication rec {
|
||||||
providerPackages
|
providerPackages
|
||||||
providerNames
|
providerNames
|
||||||
;
|
;
|
||||||
|
tests = nixosTests.music-assistant;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue