2023-04-06 21:58:26 +02:00
|
|
|
{
|
|
|
|
liminix
|
|
|
|
, nixpkgs
|
|
|
|
}:
|
|
|
|
let img = (import liminix {
|
|
|
|
device = import "${liminix}/devices/qemu/";
|
|
|
|
liminix-config = ./configuration.nix;
|
2023-04-23 12:31:48 +02:00
|
|
|
}).outputs.vmroot;
|
2024-09-18 09:10:07 +02:00
|
|
|
pkgs = import nixpkgs { overlays = [(import ../../overlay.nix)]; };
|
2023-04-06 21:58:26 +02:00
|
|
|
in pkgs.runCommand "check" {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
expect
|
|
|
|
socat
|
|
|
|
] ;
|
|
|
|
} ''
|
|
|
|
mkdir vm
|
2023-09-24 01:24:48 +02:00
|
|
|
${img}/run.sh --background ./vm
|
2023-04-06 21:58:26 +02:00
|
|
|
expect ${./script.expect} >$out
|
|
|
|
''
|