liminix/tests/updown/test.nix

20 lines
429 B
Nix
Raw Normal View History

2024-03-13 00:41:46 +01:00
{
liminix
, nixpkgs
}:
let img = (import liminix {
device = import "${liminix}/devices/qemu/";
liminix-config = ./configuration.nix;
}).outputs.vmroot;
2024-09-18 09:10:07 +02:00
pkgs = import nixpkgs { overlays = [(import ../../overlay.nix)]; };
2024-03-13 00:41:46 +01:00
in pkgs.runCommand "check" {
nativeBuildInputs = with pkgs; [
expect
socat
] ;
} ''
mkdir vm
${img}/run.sh --flag -S --background ./vm
expect ${./script.expect} | tee $out
''