Genode Packages collection https://git.sr.ht/~ehmry/genodepkgs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

58 lines
1.6 KiB

# SPDX-License-Identifier: CC0-1.0
{ system, depot, genodepkgs, nixpkgs, }:
import "${nixpkgs}/nixos/tests/make-test.nix" (
{ ... }:
rec {
name = "genode-base-linux";
machine =
{ config, pkgs, lib, ... }:
let
flakePackages = flake:
with builtins;
getAttr config.nixpkgs.system (getAttr "packages" flake);
in {
imports = [ "${genodepkgs}/nixos" ];
genode = {
signal-test = rec {
config = ''
<config>
<parent-provides>
<service name="ROM"/>
<service name="CPU"/>
<service name="RM"/>
<service name="PD"/>
<service name="LOG"/>
</parent-provides>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>
<default caps="100"/>
<start name="timer" caps="96">
<resource name="RAM" quantum="1M"/>
<provides><service name="Timer"/></provides>
</start>
<start name="test-signal" caps="500">
<resource name="RAM" quantum="10M"/>
</start>
</config>
'';
pkgs = flakePackages genodepkgs;
rom = {
"test-signal" =
"${pkgs.genode.os}/bin/test-signal";
};
};
};
};
testScript = ''
$machine->waitUntilSucceeds("journalctl -u signal-test | grep -q -i -- '--- Signalling test finished ---'");
'';
}) { inherit system; }