nixosTests.birdwatcher: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-06-07 18:20:26 +08:00
parent e6817f33bd
commit 404d25243c
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F
2 changed files with 4 additions and 16 deletions

View File

@ -255,7 +255,7 @@ in
inherit runTest; inherit runTest;
package = pkgs.bird3; package = pkgs.bird3;
}; };
birdwatcher = handleTest ./birdwatcher.nix { }; birdwatcher = runTest ./birdwatcher.nix;
bitbox-bridge = runTest ./bitbox-bridge.nix; bitbox-bridge = runTest ./bitbox-bridge.nix;
bitcoind = runTest ./bitcoind.nix; bitcoind = runTest ./bitcoind.nix;
bittorrent = runTest ./bittorrent.nix; bittorrent = runTest ./bittorrent.nix;

View File

@ -1,21 +1,10 @@
# This test does a basic functionality check for birdwatcher # This test does a basic functionality check for birdwatcher
{ {
system ? builtins.currentSystem,
pkgs ? import ../.. {
inherit system;
config = { };
},
}:
let
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
inherit (pkgs.lib) optionalString;
in
makeTest {
name = "birdwatcher"; name = "birdwatcher";
nodes = { nodes.host1 =
host1 = { { pkgs, ... }:
{
environment.systemPackages = with pkgs; [ jq ]; environment.systemPackages = with pkgs; [ jq ];
services.bird = { services.bird = {
enable = true; enable = true;
@ -84,7 +73,6 @@ makeTest {
''; '';
}; };
}; };
};
testScript = '' testScript = ''
start_all() start_all()