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:
@@ -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
|
||||
''
|
||||
|
Reference in New Issue
Block a user