2
0
Fork 0
genodepkgs/tests/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2019-10-03 19:50:34 +02:00
# SPDX-FileCopyrightText: Emery Hemingway
#
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
let
tests = call: {
fs_report = call ./fs_report.nix { };
libc = call ./libc.nix { };
log = call ./log.nix { };
signal = call ./signal.nix { };
2019-11-05 17:38:47 +01:00
# solo5 = call ./solo5 { };
};
in { self, genodepkgs, nixpkgs, dhall-haskell, genode-depot }:
2019-10-03 19:50:34 +02:00
let
hostPkgs = import nixpkgs {
2019-10-28 20:19:52 +01:00
system = "x86_64-linux";
overlays = [ (self: super: { inherit (dhall-haskell.packages) dhall; }) ];
};
depot = genode-depot.packages.x86_64-genode;
testPkgs = genodepkgs;
2019-10-03 19:50:34 +02:00
2019-11-10 09:42:12 +01:00
lib = hostPkgs.lib // self.lib;
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 {
inherit testPkgs hostPkgs lib depot;
}).callTest;
testsToList = tests:
map (test: {
inherit (test) name;
value = test;
}) (builtins.attrValues tests);
in with builtins; listToAttrs (concatLists (map (testsToList) [ linux nova ]))