Run the selected test commands through a custom Crane check phase
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user