Add log test
This commit is contained in:
parent
9fc90076d6
commit
37144809f6
|
@ -4,6 +4,7 @@ let
|
|||
tests = call:
|
||||
{
|
||||
fs_report = call ./fs_report.nix { };
|
||||
log = call ./log.nix { };
|
||||
signal = call ./signal.nix { };
|
||||
} // call ./solo5 { };
|
||||
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
-- SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
let Genode = env:DHALL_GENODE
|
||||
|
||||
let base = env:BASE_MANIFEST
|
||||
|
||||
in { config =
|
||||
Genode.Init::{
|
||||
, verbose = True
|
||||
, children =
|
||||
toMap
|
||||
{ test-log =
|
||||
Genode.Init.Start::{
|
||||
, binary = "test-log"
|
||||
, exitPropagate = True
|
||||
, resources = { caps = 500, ram = Genode.units.MiB 10 }
|
||||
, routes = [ Genode.ServiceRoute.parent "Timer" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
, rom = [ base.bin.test-log ]
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
{ testEnv, pkgs, ... }:
|
||||
with pkgs;
|
||||
|
||||
testEnv.mkTest rec {
|
||||
name = "log";
|
||||
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ ehmry ];
|
||||
|
||||
testConfig = ./log.dhall;
|
||||
|
||||
testScript = "run_genode_until {Test done.} 120";
|
||||
}
|
Loading…
Reference in New Issue