liminix/tests/jffs2/test.nix

20 lines
416 B
Nix
Raw Normal View History

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