|
|
|
@ -7,59 +7,59 @@ let
|
|
|
|
|
|
|
|
|
|
testingPython = import ./lib/testing-python.nix;
|
|
|
|
|
|
|
|
|
|
testSpecs = map (p: import p) [
|
|
|
|
|
./ahci.nix
|
|
|
|
|
./bash.nix
|
|
|
|
|
./hello.nix
|
|
|
|
|
./log.nix
|
|
|
|
|
./vmm_x86.nix
|
|
|
|
|
./x86.nix
|
|
|
|
|
];
|
|
|
|
|
testSpace = lib.cartesianProductOfSets {
|
|
|
|
|
|
|
|
|
|
cores = [
|
|
|
|
|
/* {
|
|
|
|
|
prefix = "hw-pc-";
|
|
|
|
|
testingPython = testingPython {
|
|
|
|
|
inherit flake system localSystem crossSystem pkgs;
|
|
|
|
|
extraConfigurations = [ ../nixos-modules/base-hw-pc.nix ];
|
|
|
|
|
};
|
|
|
|
|
specs = [ "x86" "hw" ];
|
|
|
|
|
platforms = [ "x86_64-genode" ];
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
/* {
|
|
|
|
|
prefix = "hw-virt_qemu-";
|
|
|
|
|
testingPython = testingPython {
|
|
|
|
|
inherit flake system localSystem crossSystem pkgs;
|
|
|
|
|
extraConfigurations = [ ../nixos-modules/base-hw-virt_qemu.nix ];
|
|
|
|
|
};
|
|
|
|
|
specs = [ "aarch64" "hw" ];
|
|
|
|
|
platforms = [ "aarch64-genode" ];
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
{
|
|
|
|
|
prefix = "nova-";
|
|
|
|
|
testingPython = testingPython {
|
|
|
|
|
inherit flake system localSystem crossSystem pkgs;
|
|
|
|
|
extraConfigurations = [ ../nixos-modules/nova.nix ];
|
|
|
|
|
};
|
|
|
|
|
specs = [ "x86" "nova" ];
|
|
|
|
|
platforms = [ "x86_64-genode" ];
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
test = map (p: import p) [
|
|
|
|
|
./ahci.nix
|
|
|
|
|
./bash.nix
|
|
|
|
|
./hello.nix
|
|
|
|
|
./log.nix
|
|
|
|
|
./vmm_x86.nix
|
|
|
|
|
./x86.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
cores' = builtins.filter (core:
|
|
|
|
|
builtins.any (x: x == pkgs.stdenv.hostPlatform.system) core.platforms)
|
|
|
|
|
cores;
|
|
|
|
|
core = builtins.filter (core:
|
|
|
|
|
builtins.any (x: x == pkgs.stdenv.hostPlatform.system) core.platforms) [
|
|
|
|
|
/* {
|
|
|
|
|
prefix = "hw-pc-";
|
|
|
|
|
testingPython = testingPython {
|
|
|
|
|
inherit flake system localSystem crossSystem pkgs;
|
|
|
|
|
extraConfigurations = [ ../nixos-modules/base-hw-pc.nix ];
|
|
|
|
|
};
|
|
|
|
|
specs = [ "x86" "hw" ];
|
|
|
|
|
platforms = [ "x86_64-genode" ];
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
/* {
|
|
|
|
|
prefix = "hw-virt_qemu-";
|
|
|
|
|
testingPython = testingPython {
|
|
|
|
|
inherit flake system localSystem crossSystem pkgs;
|
|
|
|
|
extraConfigurations = [ ../nixos-modules/base-hw-virt_qemu.nix ];
|
|
|
|
|
};
|
|
|
|
|
specs = [ "aarch64" "hw" ];
|
|
|
|
|
platforms = [ "aarch64-genode" ];
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
{
|
|
|
|
|
prefix = "nova-";
|
|
|
|
|
testingPython = testingPython {
|
|
|
|
|
inherit flake system localSystem crossSystem pkgs;
|
|
|
|
|
extraConfigurations = [ ../nixos-modules/nova.nix ];
|
|
|
|
|
};
|
|
|
|
|
specs = [ "x86" "nova" ];
|
|
|
|
|
platforms = [ "x86_64-genode" ];
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
testList = let
|
|
|
|
|
f = core: test:
|
|
|
|
|
f = { core, test }:
|
|
|
|
|
if (test.constraints or (_: true)) core.specs then {
|
|
|
|
|
name = core.prefix + test.name;
|
|
|
|
|
value = core.testingPython.makeTest test;
|
|
|
|
|
} else
|
|
|
|
|
null;
|
|
|
|
|
|
|
|
|
|
in lib.lists.crossLists f [ cores' testSpecs ];
|
|
|
|
|
in map f testSpace;
|
|
|
|
|
|
|
|
|
|
in builtins.listToAttrs (builtins.filter (_: _ != null) testList)
|
|
|
|
|