redis: move tests to passthru

This commit is contained in:
Harinn
2026-07-06 21:29:05 +07:00
parent e923a383a2
commit 067f836b5d

View File

@@ -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 { };
};