Add check for lib tests

Without this, a big part of the lib tests aren't being done, which
previously lead to e.g. https://github.com/NixOS/nixpkgs/pull/76861
And this will also be useful for checked maintainers in https://github.com/NixOS/nixpkgs/pull/82461
This commit is contained in:
Silvan Mosberger 2020-03-15 08:16:15 +01:00
parent ea4b7f8aab
commit 9066b702d0
No known key found for this signature in database
GPG key ID: E8F1E9EAD284E17D

View file

@ -425,6 +425,17 @@ impl<'a> EvaluationStrategy for NixpkgsStrategy<'a> {
], ],
self.nix.clone(), self.nix.clone(),
), ),
EvalChecker::new(
"lib-tests",
nix::Operation::Build,
vec![
String::from("--arg"),
String::from("pkgs"),
String::from("import ./. {}"),
String::from("./lib/tests/release.nix"),
],
self.nix.clone(),
),
EvalChecker::new( EvalChecker::new(
"nixos", "nixos",
nix::Operation::Instantiate, nix::Operation::Instantiate,