1
0
liminix/tests/ext4/test.nix

21 lines
422 B
Nix
Raw Normal View History

let
img =
(import <liminix> {
device = import <liminix/devices/qemu>;
2023-11-06 21:52:31 +00:00
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 --background ./vm
expect ${./script.expect} >$out
''