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