2020-01-17 01:24:34 +01:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
2019-10-03 19:50:34 +02:00
|
|
|
|
2019-10-05 19:42:08 +02:00
|
|
|
let
|
2020-01-14 12:16:02 +01:00
|
|
|
tests = call:
|
|
|
|
{
|
|
|
|
fs_report = call ./fs_report.nix { };
|
|
|
|
signal = call ./signal.nix { };
|
|
|
|
} // call ./solo5 { };
|
2019-10-09 16:51:06 +02:00
|
|
|
|
2020-01-17 19:27:04 +01:00
|
|
|
in { self, apps, system, localSystem, crossSystem, genodepkgs, nixpkgs
|
|
|
|
, genode-depot, lib }:
|
2019-10-03 19:50:34 +02:00
|
|
|
|
|
|
|
let
|
2020-01-17 19:27:04 +01:00
|
|
|
hostPkgs = import nixpkgs { system = localSystem; };
|
2019-12-02 16:39:52 +01:00
|
|
|
depot = builtins.getAttr crossSystem genode-depot.packages;
|
2019-10-09 16:51:06 +02:00
|
|
|
testPkgs = genodepkgs;
|
2019-10-03 19:50:34 +02:00
|
|
|
|
2019-11-05 17:38:47 +01:00
|
|
|
linux = tests (import ./driver-linux.nix {
|
2020-01-17 19:27:04 +01:00
|
|
|
inherit apps testPkgs hostPkgs lib depot;
|
2019-11-05 17:38:47 +01:00
|
|
|
}).callTest;
|
|
|
|
|
|
|
|
nova = (call: ((tests call) // { pci = call ./pci.nix { }; }))
|
|
|
|
(import ./driver-nova.nix {
|
2020-01-17 19:27:04 +01:00
|
|
|
inherit apps system testPkgs hostPkgs lib depot;
|
2019-11-05 17:38:47 +01:00
|
|
|
}).callTest;
|
|
|
|
|
|
|
|
testsToList = tests:
|
|
|
|
map (test: {
|
|
|
|
inherit (test) name;
|
|
|
|
value = test;
|
|
|
|
}) (builtins.attrValues tests);
|
|
|
|
|
|
|
|
in with builtins; listToAttrs (concatLists (map (testsToList) [ linux nova ]))
|