improve testing infra
This commit is contained in:
parent
80d9e1029d
commit
1242ba2274
17
flake.nix
17
flake.nix
@ -222,9 +222,24 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
tests = import ./tests/tests.nix {
|
packages.${system} =
|
||||||
|
let
|
||||||
|
testSuite = import ./tests/tests.nix {
|
||||||
inherit pkgs lib;
|
inherit pkgs lib;
|
||||||
config = self.nixosConfigurations.muffin.config;
|
config = self.nixosConfigurations.muffin.config;
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
tests = pkgs.linkFarm "all-tests" (
|
||||||
|
pkgs.lib.mapAttrsToList (name: test: {
|
||||||
|
name = name;
|
||||||
|
path = test;
|
||||||
|
}) testSuite
|
||||||
|
);
|
||||||
|
}
|
||||||
|
// (pkgs.lib.mapAttrs' (name: test: {
|
||||||
|
name = "test-${name}";
|
||||||
|
value = test;
|
||||||
|
}) testSuite);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user