2020-01-17 01:24:34 +01:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
2019-10-03 19:50:34 +02:00
|
|
|
|
2020-04-26 07:15:21 +02:00
|
|
|
let tests = call: { log = call ./log.nix { }; };
|
2019-10-09 16:51:06 +02:00
|
|
|
|
2020-04-05 19:54:03 +02:00
|
|
|
in { apps, buildPackages, depot, genodepkgs, lib, nixpkgs }:
|
2019-10-03 19:50:34 +02:00
|
|
|
|
|
|
|
let
|
2019-10-09 16:51:06 +02:00
|
|
|
testPkgs = genodepkgs;
|
2019-10-03 19:50:34 +02:00
|
|
|
|
2020-03-26 16:24:27 +01:00
|
|
|
addManifest = drv:
|
|
|
|
drv // {
|
2020-04-05 19:54:03 +02:00
|
|
|
manifest = nixpkgs.runCommand "${drv.name}.dhall" { inherit drv; } ''
|
2020-03-26 16:24:27 +01:00
|
|
|
set -eu
|
|
|
|
echo -n '[' >> $out
|
|
|
|
find $drv/ -type f -printf ',{mapKey= "%f",mapValue="%p"}' >> $out
|
|
|
|
echo -n ']' >> $out
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-03-22 06:11:46 +01:00
|
|
|
linux =
|
|
|
|
(call: ((tests call) // { block_router = call ./block_router.nix { }; }))
|
|
|
|
(import ./driver-linux.nix {
|
2020-04-05 19:54:03 +02:00
|
|
|
inherit apps addManifest buildPackages depot lib nixpkgs testPkgs;
|
2020-03-22 06:11:46 +01:00
|
|
|
}).callTest;
|
2019-11-05 17:38:47 +01:00
|
|
|
|
2020-01-25 00:17:33 +01:00
|
|
|
nova = (call:
|
|
|
|
((tests call) // {
|
2020-02-27 18:17:14 +01:00
|
|
|
driver_manager = call ./driver_manager.nix { };
|
2020-03-01 02:10:11 +01:00
|
|
|
noux = call ./noux.nix { };
|
2020-04-26 07:18:38 +02:00
|
|
|
vmm = call ./vmm_x86.nix { };
|
2020-04-26 07:15:21 +02:00
|
|
|
x86 = call ./x86.nix { };
|
|
|
|
} // call ./solo5 { })) (import ./driver-nova.nix {
|
2020-04-05 19:54:03 +02:00
|
|
|
inherit apps addManifest buildPackages depot lib nixpkgs testPkgs;
|
2019-11-05 17:38:47 +01:00
|
|
|
}).callTest;
|
|
|
|
|
2020-02-18 20:14:29 +01:00
|
|
|
hw = (call:
|
|
|
|
((tests call) // {
|
2020-02-21 22:55:50 +01:00
|
|
|
# noux = call ./noux.nix { };
|
2020-04-26 07:15:21 +02:00
|
|
|
x86 = call ./x86.nix { };
|
|
|
|
} // call ./solo5 { })) (import ./driver-hw.nix {
|
2020-04-05 19:54:03 +02:00
|
|
|
inherit apps addManifest buildPackages depot lib nixpkgs testPkgs;
|
2020-02-18 20:14:29 +01:00
|
|
|
}).callTest;
|
|
|
|
|
2019-11-05 17:38:47 +01:00
|
|
|
testsToList = tests:
|
|
|
|
map (test: {
|
|
|
|
inherit (test) name;
|
|
|
|
value = test;
|
|
|
|
}) (builtins.attrValues tests);
|
|
|
|
|
2020-02-19 14:27:24 +01:00
|
|
|
hw-sotest = map ({ name, value }: {
|
|
|
|
name = name + "-sotest";
|
|
|
|
value = value.sotest;
|
2020-04-15 10:25:32 +02:00
|
|
|
}) (builtins.filter ({ name, value }: !isNull value.sotest) (testsToList hw));
|
2020-02-19 14:27:24 +01:00
|
|
|
|
2020-01-22 12:48:10 +01:00
|
|
|
nova-sotest = map ({ name, value }: {
|
|
|
|
name = name + "-sotest";
|
|
|
|
value = value.sotest;
|
2020-04-15 10:25:32 +02:00
|
|
|
}) (builtins.filter ({ name, value }: !isNull value.sotest)
|
|
|
|
(testsToList nova));
|
2020-01-22 12:48:10 +01:00
|
|
|
|
2020-01-20 18:29:56 +01:00
|
|
|
in with builtins;
|
2020-03-01 02:10:11 +01:00
|
|
|
listToAttrs ((concatLists (map (testsToList) [ linux hw nova ])) ++ hw-sotest
|
2020-02-27 18:17:14 +01:00
|
|
|
++ nova-sotest)
|