mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
redis: move tests to passthru
This commit is contained in:
@@ -77,8 +77,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isFreeBSD "-lexecinfo";
|
||||
|
||||
# darwin currently lacks a pure `pgrep` which is extensively used here
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
# Tests are in the `tests` passthru derivation: the suite is very large and some tests (e.g. memtests) are flaky.
|
||||
doCheck = false;
|
||||
|
||||
nativeCheckInputs = [
|
||||
which
|
||||
tcl
|
||||
@@ -126,7 +127,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
versionCheckProgram = "${placeholder "out"}/bin/redis-server";
|
||||
|
||||
passthru = {
|
||||
tests.redis = nixosTests.redis;
|
||||
tests = {
|
||||
redis = nixosTests.redis;
|
||||
unitTests = finalAttrs.finalPackage.overrideAttrs { doCheck = true; };
|
||||
};
|
||||
serverBin = "redis-server";
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user