2
0
Fork 0
genodepkgs/tests/default.nix

36 lines
977 B
Nix
Raw Normal View History

2020-01-17 01:24:34 +01:00
# SPDX-License-Identifier: CC0-1.0
2019-10-03 19:50:34 +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-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
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-12-02 16:39:52 +01:00
depot = builtins.getAttr crossSystem genode-depot.packages;
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 ]))