Select sandbox-safe modules from the shared host test binary
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user