nixosTests.bpf: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-06-07 18:46:07 +08:00
parent 16e6e74550
commit 4e792f525e
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F
2 changed files with 40 additions and 42 deletions

View File

@ -269,7 +269,7 @@ in
borgbackup = runTest ./borgbackup.nix; borgbackup = runTest ./borgbackup.nix;
borgmatic = runTest ./borgmatic.nix; borgmatic = runTest ./borgmatic.nix;
botamusique = runTest ./botamusique.nix; botamusique = runTest ./botamusique.nix;
bpf = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./bpf.nix { }; bpf = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./bpf.nix;
bpftune = runTest ./bpftune.nix; bpftune = runTest ./bpftune.nix;
breitbandmessung = runTest ./breitbandmessung.nix; breitbandmessung = runTest ./breitbandmessung.nix;
broadcast-box = runTest ./broadcast-box.nix; broadcast-box = runTest ./broadcast-box.nix;

View File

@ -1,8 +1,7 @@
import ./make-test-python.nix ( { lib, ... }:
{ pkgs, ... }: {
{
name = "bpf"; name = "bpf";
meta.maintainers = with pkgs.lib.maintainers; [ martinetd ]; meta.maintainers = with lib.maintainers; [ martinetd ];
nodes.machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
@ -40,5 +39,4 @@ import ./make-test-python.nix (
print(machine.succeed("bpftrace -e '#include <errno.h>\n" print(machine.succeed("bpftrace -e '#include <errno.h>\n"
"BEGIN { printf(\"ok %d\\n\", EINVAL); exit(); }'")) "BEGIN { printf(\"ok %d\\n\", EINVAL); exit(); }'"))
''; '';
} }
)