2
0
Fork 0
genodepkgs/tests/vmm_arm.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

2020-06-03 16:14:18 +02:00
{ pkgs, localPackages, ... }:
{
name = "vmm_arm";
constraints = specs:
with builtins;
all (f: any f specs) [ (spec: spec == "aarch64") ];
machine = {
config = with localPackages;
let
dtb = runCommand "arm_v8.vmm.db" { buildInputs = [ dtc ]; }
"dtc ${pkgs.genodeSources}/repos/os/src/server/vmm/spec/arm_v8/virt.dts > $out";
2020-06-03 16:14:18 +02:00
linux = fetchurl {
url = "http://genode.org/files/release-20.02/linux-arm64";
hash = "sha256-H6FhNGgkApouy+PyjxrgAPnJSc4BIlWlpg+VhWiUI6o=";
};
initrd = fetchurl {
url = "http://genode.org/files/release-20.02/initrd-arm64";
hash = "sha256-iOKd2X2zgDIGeuLEDSSTLSw/Ywi7mDET36J1NAqgqls=";
};
guest = writeText "guest.dhall" ''
{ dtb = "${dtb}", linux = "${linux}", initrd = "${initrd}" }
2020-06-03 16:14:18 +02:00
'';
in "${./vmm_arm.dhall} ${guest}";
inputs = with pkgs;
let
vmm' = genodeSources.buildUpstream {
name = "vmm_arm";
targets = [ "server/vmm" ];
KERNEL = "hw";
};
in [ vmm' ] ++ map genodeSources.depot [
"log_terminal"
"nic_router"
"terminal_crosslink"
] ++ map genodeSources.make [ "test/terminal_expect_send" ];
};
testScript = ''
start_all()
machine.wait_until_serial_output("linuxrc")
'';
}