liminix/tests/ext4/test.nix
catvayor df520d0527
Some checks failed
build liminix / test_hostapd (pull_request) Has been cancelled
build liminix / build_vm_qemu_mips (pull_request) Has been cancelled
build liminix / build_zyxel-nwa50ax_mips (pull_request) Has been cancelled
feat(ci): use ci.nix
2024-09-18 09:10:07 +02:00

19 lines
414 B
Nix

{
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 --background ./vm
expect ${./script.expect} >$out
''