sigil/tests/log.nix

30 lines
708 B
Nix
Raw Normal View History

{
2020-01-22 12:21:39 +01:00
name = "log";
2021-02-16 12:10:50 +01:00
machine = { lib, pkgs, ... }: {
genode.init.children.log = {
2021-02-16 12:10:50 +01:00
package = pkgs.genodePackages.test-log;
configFile = pkgs.writeText "test-log.dhall" ''
2021-02-16 12:10:50 +01:00
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.")
'';
2020-01-22 12:21:39 +01:00
}