2023-02-09 00:19:18 +01:00
|
|
|
{
|
|
|
|
liminix
|
|
|
|
, nixpkgs
|
|
|
|
}:
|
|
|
|
let img = (import liminix {
|
2024-09-18 17:04:51 +02:00
|
|
|
inherit nixpkgs;
|
2024-09-18 09:10:07 +02:00
|
|
|
device = import "${liminix}/devices/qemu/";
|
2023-02-09 00:19:18 +01:00
|
|
|
liminix-config = ./configuration.nix;
|
|
|
|
}).outputs.default;
|
2024-09-18 09:10:07 +02:00
|
|
|
pkgs = import nixpkgs { overlays = [(import ../../overlay.nix)]; };
|
2023-02-09 00:19:18 +01:00
|
|
|
in pkgs.runCommand "check" {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
2023-09-24 01:24:48 +02:00
|
|
|
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
|
2023-09-24 01:24:48 +02:00
|
|
|
${img}/run.sh --background ./vm
|
2023-03-10 19:41:43 +01:00
|
|
|
expect ${./wait-for-wlan.expect} |tee output && mv output $out
|
2023-02-09 00:19:18 +01:00
|
|
|
''
|