Files
betterxen/scripts/mutation.sh
T
Ranveer Soni a34dadcbc0 test: run the full workspace suite for each source mutant
Cross-package tests, including the semantic-review differential interpreter,
can kill mutants that a package-only test run would miss. Run the whole
workspace (GPU tests stay behind their feature gate) and give cold builds a
generous timeout.

Signed-off-by: Ranveer Soni <git@ranveersoni.me>
2026-11-22 14:25:46 +05:30

22 lines
691 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
set -eu
cd "$(dirname "$0")/.."
# Source mutation campaign for the critical Phase 01 modules.
# R2 owns execution and survivor triage; this script only reproduces the run.
# Tests run for the mutated package only (cargo-mutants default), so this stays
# CPU-only and never dispatches GPU work.
out=${1:-artifacts/mutation/campaign-$(date +%Y%m%d-%H%M%S)}
mkdir -p "$out"
export CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS:-2}
cargo mutants --workspace \
--file 'crates/decoder/src/**' \
--file 'crates/shader/src/**' \
--file 'crates/ref/src/**' \
--test-workspace true \
--jobs 2 \
--timeout 300 \
--output "$out"