mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
tests.nixpkgs-check-by-name: Test on the current Nixpkgs
This test actually fails right now
This commit is contained in:
parent
91b754edff
commit
3ebd239cd5
|
@ -6,6 +6,7 @@
|
|||
clippy,
|
||||
mkShell,
|
||||
makeWrapper,
|
||||
runCommand,
|
||||
}:
|
||||
let
|
||||
runtimeExprPath = ./src/eval.nix;
|
||||
|
@ -52,6 +53,19 @@ let
|
|||
env.NIXPKGS_LIB_PATH = toString nixpkgsLibPath;
|
||||
inputsFrom = [ package ];
|
||||
};
|
||||
|
||||
# Tests the tool on the current Nixpkgs tree, this is a good sanity check
|
||||
passthru.tests.nixpkgs = runCommand "test-nixpkgs-check-by-name" {
|
||||
nativeBuildInputs = [
|
||||
package
|
||||
nix
|
||||
];
|
||||
nixpkgsPath = lib.cleanSource ../../..;
|
||||
} ''
|
||||
${initNix}
|
||||
nixpkgs-check-by-name --base "$nixpkgsPath" "$nixpkgsPath"
|
||||
touch $out
|
||||
'';
|
||||
};
|
||||
in
|
||||
package
|
||||
|
|
Loading…
Reference in a new issue