From d797857c94abefe266f3529821adee44f579f722 Mon Sep 17 00:00:00 2001 From: Surma Date: Sun, 8 Nov 2026 02:52:37 +0000 Subject: [PATCH] Run the selected test commands through a custom Crane check phase --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d043b5b..1e63f09 100644 --- a/flake.nix +++ b/flake.nix @@ -159,8 +159,11 @@ in { packages.default = sausage; checks.package = sausage; - checks.tests = craneLib.cargoTest (common // wasiCcEnv // { + checks.tests = craneLib.mkCargoDerivation (common // wasiCcEnv // { inherit cargoArtifacts; + pnameSuffix = "-test"; + doCheck = true; + buildPhaseCargoCommand = ""; # Keep the same sandbox-compatible modules in the shared host test executable. checkPhaseCargoCommand = '' cargoWithProfile test --locked --workspace --lib