Select sandbox-safe modules from the shared host test binary

This commit is contained in:
2026-11-08 02:32:55 +00:00
parent 3a9798d7c1
commit e939978e48
+8 -1
View File
@@ -160,7 +160,14 @@
checks.package = sausage;
checks.tests = craneLib.cargoTest (common // wasiCcEnv // {
inherit cargoArtifacts;
cargoExtraArgs = "--workspace --lib --test harness --test p1 --test durable --test 'cred*' --test layers --test regressions --test streams --test wasi";
# Keep the same sandbox-compatible modules in the shared host test executable.
checkPhaseCargoCommand = ''
cargoWithProfile test --locked --workspace --lib
cargoWithProfile test --locked -p sausage --test it -- \
harness:: p1:: durable:: cred:: cred_ --skip undo_harness::
cargoWithProfile test --locked -p sausage-vfs \
--test layers --test regressions --test streams --test wasi
'';
preCheck = ''
export SAUSAGE_CACHE="$TMPDIR/sausage-cache"
export CARGO_TARGET_DIR="$PWD/target"