2
0
Fork 0
genodepkgs/tests/solo5/default.nix

47 lines
966 B
Nix
Raw Normal View History

2020-01-17 01:24:34 +01:00
# SPDX-License-Identifier: CC0-1.0
2020-01-14 12:16:02 +01:00
{ testEnv, pkgs, ... }:
2019-10-22 19:20:26 +02:00
with pkgs;
let
2020-05-15 07:42:43 +02:00
mkTest' = { name, testConfig, testInputs ? [ ], ... }@attrs:
2019-10-22 19:20:26 +02:00
testEnv.mkTest (attrs // {
name = "solo5-" + name;
inherit testConfig;
testInputs = [ pkgs.solo5 pkgs.solo5.tests ] ++ testInputs;
2019-10-22 19:20:26 +02:00
});
applyMkTest = x: {
inherit (x) name;
value = mkTest' x;
};
mkTests = testList: builtins.listToAttrs (map applyMkTest testList);
genodeDepot = pkgs.genodeSources.depot;
genodeMake = pkgs.genodeSources.make;
2020-01-17 19:27:04 +01:00
2019-10-22 19:20:26 +02:00
tests = [
{
2020-04-13 20:26:01 +02:00
name = "multi";
testConfig = "${./.}/solo5.dhall";
testInputs = map genodeMake [ "app/ping" ] ++ (map genodeDepot [
"ram_block"
"nic_bridge"
"nic_loopback"
"sequence"
]);
2019-10-22 19:20:26 +02:00
}
{
name = "ssp";
2020-04-13 20:26:01 +02:00
testConfig = ./ssp.dhall;
2019-10-22 19:20:26 +02:00
testScript = ''
run_genode_until {Error: stack protector check failed} 30
'';
}
2020-04-13 20:26:01 +02:00
];
2019-10-22 19:20:26 +02:00
in mkTests tests