valkey: move tests to passthru

This commit is contained in:
Harinn
2026-07-06 21:32:57 +07:00
parent 067f836b5d
commit eba8e3dd51

View File

@@ -65,8 +65,9 @@ stdenv.mkDerivation (finalAttrs: {
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ "-std=c11" ]);
# 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 significantly slows down the build.
doCheck = false;
nativeCheckInputs = [
which
tcl
@@ -108,7 +109,10 @@ stdenv.mkDerivation (finalAttrs: {
'';
passthru = {
tests.redis = nixosTests.redis;
tests = {
redis = nixosTests.redis;
unitTests = finalAttrs.finalPackage.overrideAttrs { doCheck = true; };
};
serverBin = "valkey-server";
};