liminix/tests/wlan/test.nix

17 lines
449 B
Nix
Raw Normal View History

let img = (import <liminix> {
device = import <liminix/devices/qemu-armv7l>;
2023-02-08 23:19:18 +00:00
liminix-config = ./configuration.nix;
}).outputs.default;
pkgs = import <nixpkgs> { overlays = [(import ../../overlay.nix)]; };
in pkgs.runCommand "check" {
nativeBuildInputs = with pkgs; [
expect socat
2023-02-08 23:19:18 +00:00
] ;
} ''
2023-05-07 22:01:24 +00:00
. ${../test-helpers.sh}
2023-02-08 23:19:18 +00:00
mkdir vm
${img}/run.sh --background ./vm
expect ${./wait-for-wlan.expect} |tee output && mv output $out
2023-02-08 23:19:18 +00:00
''