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 { };
|
2020-01-22 12:21:39 +01:00
|
|
|
log = call ./log.nix { };
|
2020-01-14 12:16:02 +01:00
|
|
|
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;
|
|
|
|
|
2020-01-23 11:39:02 +01:00
|
|
|
nova = (call: ((tests call) // { pci = call ./pci.nix { }; rtc = call ./rtc.nix { }; }))
|
2019-11-05 17:38:47 +01:00
|
|
|
(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);
|
|
|
|
|
2020-01-22 12:48:10 +01:00
|
|
|
nova-sotest = map ({ name, value }: {
|
|
|
|
name = name + "-sotest";
|
|
|
|
value = value.sotest;
|
|
|
|
}) (testsToList nova);
|
|
|
|
|
2020-01-20 18:29:56 +01:00
|
|
|
in with builtins;
|
2020-01-22 12:48:10 +01:00
|
|
|
listToAttrs
|
|
|
|
((concatLists (map (testsToList) [ linux nova ])) ++ nova-sotest)
|