forked from DGNum/liminix
tests: use run.sh instead of calling run-liminix-vm directly
this makes it easier to run tests on aarch64 where qemu wants an Image file instead of a vmlinux
This commit is contained in:
parent
3205a38ac9
commit
94e51db649
4 changed files with 5 additions and 10 deletions
|
@ -7,15 +7,13 @@ let img = (import liminix {
|
|||
liminix-config = ./configuration.nix;
|
||||
}).outputs.vmroot;
|
||||
pkgs = import <nixpkgs> { overlays = [(import ../../overlay.nix)]; };
|
||||
inherit (pkgs.pkgsBuildBuild) routeros run-liminix-vm;
|
||||
in pkgs.runCommand "check" {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
run-liminix-vm
|
||||
expect
|
||||
socat
|
||||
] ;
|
||||
} ''
|
||||
mkdir vm
|
||||
run-liminix-vm --background ./vm ${img}/vmlinux ${img}/rootfs
|
||||
${img}/run.sh --background ./vm
|
||||
expect ${./script.expect} >$out
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue