mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
parent
52822c9037
commit
93d9ca0d83
2 changed files with 26 additions and 28 deletions
|
@ -1,32 +1,30 @@
|
||||||
import ./make-test-python.nix (
|
{ pkgs, ... }:
|
||||||
{ pkgs, ... }:
|
{
|
||||||
{
|
name = "airsonic";
|
||||||
name = "airsonic";
|
meta = with pkgs.lib.maintainers; {
|
||||||
meta = with pkgs.lib.maintainers; {
|
maintainers = [ sumnerevans ];
|
||||||
maintainers = [ sumnerevans ];
|
};
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.airsonic = {
|
||||||
|
enable = true;
|
||||||
|
maxMemory = 800;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes.machine =
|
testScript = ''
|
||||||
{ pkgs, ... }:
|
def airsonic_is_up(_) -> bool:
|
||||||
{
|
status, _ = machine.execute("curl --fail http://localhost:4040/login")
|
||||||
services.airsonic = {
|
return status == 0
|
||||||
enable = true;
|
|
||||||
maxMemory = 800;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
def airsonic_is_up(_) -> bool:
|
|
||||||
status, _ = machine.execute("curl --fail http://localhost:4040/login")
|
|
||||||
return status == 0
|
|
||||||
|
|
||||||
|
|
||||||
machine.start()
|
machine.start()
|
||||||
machine.wait_for_unit("airsonic.service")
|
machine.wait_for_unit("airsonic.service")
|
||||||
machine.wait_for_open_port(4040)
|
machine.wait_for_open_port(4040)
|
||||||
|
|
||||||
with machine.nested("Waiting for UI to work"):
|
with machine.nested("Waiting for UI to work"):
|
||||||
retry(airsonic_is_up)
|
retry(airsonic_is_up)
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ in {
|
||||||
agda = runTest ./agda.nix;
|
agda = runTest ./agda.nix;
|
||||||
age-plugin-tpm-decrypt = runTest ./age-plugin-tpm-decrypt.nix;
|
age-plugin-tpm-decrypt = runTest ./age-plugin-tpm-decrypt.nix;
|
||||||
agorakit = runTest ./web-apps/agorakit.nix;
|
agorakit = runTest ./web-apps/agorakit.nix;
|
||||||
airsonic = handleTest ./airsonic.nix {};
|
airsonic = runTest ./airsonic.nix;
|
||||||
akkoma = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./akkoma.nix {};
|
akkoma = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./akkoma.nix {};
|
||||||
akkoma-confined = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./akkoma.nix { confined = true; };
|
akkoma-confined = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./akkoma.nix { confined = true; };
|
||||||
alice-lg = handleTest ./alice-lg.nix {};
|
alice-lg = handleTest ./alice-lg.nix {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue