2
0
Fork 0
genodepkgs/tests/default.nix

40 lines
1.1 KiB
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 { };
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;
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;
2020-01-20 18:29:56 +01:00
sotest-nova = (call: ((tests call) // { pci = call ./pci.nix { }; }))
(import ./driver-sotest-nova.nix {
inherit apps system testPkgs hostPkgs lib depot;
}).callTest;
2019-11-05 17:38:47 +01:00
testsToList = tests:
map (test: {
inherit (test) name;
value = test;
}) (builtins.attrValues tests);
2020-01-20 18:29:56 +01:00
in with builtins;
listToAttrs (concatLists (map (testsToList) [ linux nova sotest-nova ]))