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

45 lines
909 B
Nix
Raw Normal View History

{ pkgs, ... }:
2019-10-22 19:20:26 +02:00
with pkgs;
let
solo5Test = { name, machine, ... }@args:
args // {
2019-10-22 19:20:26 +02:00
name = "solo5-" + name;
machine = machine // {
inputs = [ pkgs.solo5 pkgs.solo5.tests ] ++ machine.inputs;
};
};
2019-10-22 19:20:26 +02:00
genodeDepot = pkgs.genodeSources.depot;
genodeMake = pkgs.genodeSources.make;
2020-01-17 19:27:04 +01:00
in map solo5Test [
{
name = "multi";
machine = {
config = "${./.}/solo5.dhall { isAarch64 = ${
if pkgs.stdenv.hostPlatform.isAarch64 then "True" else "False"
} }";
inputs = map genodeMake [ "app/ping" ] ++ (map genodeDepot [
2020-04-13 20:26:01 +02:00
"ram_block"
"nic_bridge"
"nic_loopback"
"sequence"
]);
};
}
{
name = "ssp";
machine = {
config = ./ssp.dhall;
inputs = [ ];
};
testScript = ''
start_all()
machine.wait_until_serial_output("Error: stack protector check failed")
'';
}
]