Run the selected test commands through a custom Crane check phase

This commit is contained in:
2026-11-08 02:52:37 +00:00
parent 67b99c50a9
commit d797857c94
+4 -1
View File
@@ -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