2019-10-03 19:50:34 +02:00
|
|
|
# SPDX-FileCopyrightText: Emery Hemingway
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
|
|
|
|
|
2019-10-05 19:42:08 +02:00
|
|
|
let
|
|
|
|
tests = call: {
|
|
|
|
fs_report = call ./fs_report.nix { };
|
|
|
|
log = call ./log.nix { };
|
|
|
|
signal = call ./signal.nix { };
|
2019-11-05 17:38:47 +01:00
|
|
|
# solo5 = call ./solo5 { };
|
2019-10-05 19:42:08 +02:00
|
|
|
};
|
2019-10-09 16:51:06 +02:00
|
|
|
|
2019-12-02 16:39:52 +01:00
|
|
|
in { self, system, localSystem, crossSystem, genodepkgs, nixpkgs, dhall-haskell, genode-depot, lib }:
|
2019-10-03 19:50:34 +02:00
|
|
|
|
|
|
|
let
|
2019-10-09 16:51:06 +02:00
|
|
|
hostPkgs = import nixpkgs {
|
2019-12-02 16:39:52 +01:00
|
|
|
system = localSystem;
|
2019-10-28 20:19:52 +01:00
|
|
|
overlays = [ (self: super: { inherit (dhall-haskell.packages) dhall; }) ];
|
2019-10-09 16:51:06 +02:00
|
|
|
};
|
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 {
|
|
|
|
inherit testPkgs hostPkgs lib depot;
|
|
|
|
}).callTest;
|
|
|
|
|
|
|
|
nova = (call: ((tests call) // { pci = call ./pci.nix { }; }))
|
|
|
|
(import ./driver-nova.nix {
|
2019-12-02 16:39:52 +01:00
|
|
|
inherit 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 ]))
|