sigil/tests/log.nix

30 lines
703 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-03-28 15:07:21 +02:00
let Sigil = env:DHALL_SIGIL
2021-03-28 15:07:21 +02:00
let Child = Sigil.Init.Child
in λ(binary : Text)
Child.flat
Child.Attributes::{
, binary
, exitPropagate = True
2021-03-28 15:07:21 +02:00
, resources = Sigil.Init.Resources::{
, caps = 500
2021-03-28 15:07:21 +02:00
, ram = Sigil.units.MiB 10
}
}
'';
};
};
testScript = ''
start_all()
machine.wait_until_serial_output("Test done.")
'';
2020-01-22 12:21:39 +01:00
}