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

@@ -15,7 +15,6 @@ in pkgs.runCommand "check" {
jq
socat
routeros.routeros
run-liminix-vm
] ;
} ''
serverstatedir=$(mktemp -d -t routeros-XXXXXX)
@@ -27,7 +26,7 @@ export MPLCONFIGDIR=$(mktemp -d -t routeros-XXXXXX)
routeros $serverstatedir
mkdir vm
run-liminix-vm --background ./vm ${img}/vmlinux ${img}/rootfs
${img}/run.sh --background ./vm
expect ${./getaddress.expect}
set -o pipefail