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:
Daniel Barlow 2023-09-24 00:24:48 +01:00
parent 3205a38ac9
commit 94e51db649
4 changed files with 5 additions and 10 deletions

View file

@ -10,14 +10,12 @@ let img = (import liminix {
inherit (pkgs.pkgsBuildBuild) run-liminix-vm;
in pkgs.runCommand "check" {
nativeBuildInputs = with pkgs; [
expect
run-liminix-vm
socat
expect socat
] ;
} ''
. ${../test-helpers.sh}
mkdir vm
run-liminix-vm --background ./vm ${img}/vmlinux ${img}/rootfs
${img}/run.sh --background ./vm
expect ${./wait-for-wlan.expect} |tee output && mv output $out
''