From 9066b702d0f61962d9d4510151366c705104a311 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sun, 15 Mar 2020 08:16:15 +0100 Subject: [PATCH] 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 --- ofborg/src/tasks/eval/nixpkgs.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ofborg/src/tasks/eval/nixpkgs.rs b/ofborg/src/tasks/eval/nixpkgs.rs index 126b8f0..d6bb8f3 100644 --- a/ofborg/src/tasks/eval/nixpkgs.rs +++ b/ofborg/src/tasks/eval/nixpkgs.rs @@ -425,6 +425,17 @@ impl<'a> EvaluationStrategy for NixpkgsStrategy<'a> { ], 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( "nixos", nix::Operation::Instantiate,