Add parallel test runner

The new test runner will evaluate all test profiles from the README.md
in parallel in separate nix-build processes.
Since we do not load all processes into one process,
this also helps saving memory.
This commit is contained in:
Jörg Thalheim
2020-02-19 11:01:02 +00:00
parent 5904e7605c
commit 9c952961f1
6 changed files with 130 additions and 57 deletions

19
tests/build-profile.nix Normal file
View File

@@ -0,0 +1,19 @@
{ profile }:
let
shim = {
boot.loader.systemd-boot.enable = true;
fileSystems."/" = {
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
fsType = "btrfs";
};
nixpkgs.config = {
allowBroken = true;
allowUnfree = true;
};
};
in (import <nixpkgs/nixos> {
configuration.imports = [ profile shim ];
}).system