liminix-fork/tests/wlan/test.nix

21 lines
476 B
Nix
Raw Normal View History

2023-02-09 00:19:18 +01:00
{
liminix
, nixpkgs
}:
let img = (import liminix {
2023-12-05 00:36:40 +01:00
device = import "${liminix}/devices/qemu-armv7l/";
2023-02-09 00:19:18 +01: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-09 00:19:18 +01:00
] ;
} ''
2023-05-08 00:01:24 +02:00
. ${../test-helpers.sh}
2023-02-09 00:19:18 +01:00
mkdir vm
${img}/run.sh --background ./vm
expect ${./wait-for-wlan.expect} |tee output && mv output $out
2023-02-09 00:19:18 +01:00
''