2
0

Add log test

This commit is contained in:
Ehmry - 2020-01-22 12:21:39 +01:00
parent 9fc90076d6
commit 37144809f6
3 changed files with 36 additions and 0 deletions

View File

@ -4,6 +4,7 @@ let
tests = call:
{
fs_report = call ./fs_report.nix { };
log = call ./log.nix { };
signal = call ./signal.nix { };
} // call ./solo5 { };

22
tests/log.dhall Normal file
View File

@ -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 ]
}

13
tests/log.nix Normal file
View File

@ -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";
}