sigil/tests/log.nix

30 lines
708 B
Nix

{
name = "log";
machine = { lib, pkgs, ... }: {
genode.init.children.log = {
package = pkgs.genodePackages.test-log;
configFile = pkgs.writeText "test-log.dhall" ''
let Genode = env:DHALL_GENODE
let Child = Genode.Init.Child
in λ(binary : Text)
Child.flat
Child.Attributes::{
, binary
, exitPropagate = True
, resources = Genode.Init.Resources::{
, caps = 500
, ram = Genode.units.MiB 10
}
}
'';
};
};
testScript = ''
start_all()
machine.wait_until_serial_output("Test done.")
'';
}