liminix/tests/wlan/test.nix
catvayor df520d0527
Some checks failed
build liminix / test_hostapd (pull_request) Has been cancelled
build liminix / build_vm_qemu_mips (pull_request) Has been cancelled
build liminix / build_zyxel-nwa50ax_mips (pull_request) Has been cancelled
feat(ci): use ci.nix
2024-09-18 09:10:07 +02:00

20 lines
467 B
Nix

{
liminix
, nixpkgs
}:
let img = (import liminix {
device = import "${liminix}/devices/qemu/";
liminix-config = ./configuration.nix;
}).outputs.default;
pkgs = import nixpkgs { overlays = [(import ../../overlay.nix)]; };
in pkgs.runCommand "check" {
nativeBuildInputs = with pkgs; [
expect socat
] ;
} ''
. ${../test-helpers.sh}
mkdir vm
${img}/run.sh --background ./vm
expect ${./wait-for-wlan.expect} |tee output && mv output $out
''