failing test for ifwait

This commit is contained in:
Daniel Barlow
2024-03-12 23:41:46 +00:00
parent b8a46fc05e
commit 34442b6069
4 changed files with 104 additions and 0 deletions

19
tests/updown/test.nix Normal file
View File

@@ -0,0 +1,19 @@
{
liminix
, nixpkgs
}:
let img = (import liminix {
device = import "${liminix}/devices/qemu/";
liminix-config = ./configuration.nix;
}).outputs.vmroot;
pkgs = import <nixpkgs> { overlays = [(import ../../overlay.nix)]; };
in pkgs.runCommand "check" {
nativeBuildInputs = with pkgs; [
expect
socat
] ;
} ''
mkdir vm
${img}/run.sh --flag -S --background ./vm
expect ${./script.expect} | tee $out
''