Comment 27191 on #1543, correction 27192. Candidate afb2ae0e. Co-Authored-By: Claude Opus 5.5 <[email protected]>
17 lines
1.1 KiB
Bash
Executable File
17 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
||
# Each mutant against its package suite in a candidate worktree, then restores from the index.
|
||
export TMPDIR=~/darkwing-scratch/r54b/tmp
|
||
S=~/darkwing-scratch/r54b; M=$S/r2/mut; W=$S/mutwt
|
||
: > $M/summary.txt
|
||
echo "start $(date -u +%FT%TZ)" >> $M/summary.txt
|
||
for v in $(python3 -c 'import re;print(" ".join(sorted(set(re.findall(r"\"([DE]\d\d)\"", open("'$M'/mutate.py").read())))))'); do
|
||
(cd $W && git checkout -q -- packages/webui packages/queue && python3 $M/mutate.py $v > /dev/null && git diff > $M/$v.diff) || { echo "$v APPLY-FAILED" >> $M/summary.txt; continue; }
|
||
pkg=webui; [ $v = D31 ] && pkg=queue
|
||
(cd $W/packages/$pkg && env -u NODE_TEST_CONTEXT node --test 'tests/*.test.mjs' > $M/$v.txt 2>&1); e=$?
|
||
r=killed; [ $e = 0 ] && r=SURVIVED
|
||
echo "$v $r exit=$e $(grep -E '^ℹ (pass|fail)' $M/$v.txt | tr '\n' ' ')" >> $M/summary.txt
|
||
done
|
||
(cd $W && git checkout -q -- packages/webui packages/queue && sha256sum -c $S/pkt/candidate-manifest.sha256) > $M/manifest-after.txt 2>&1
|
||
echo "end $(date -u +%FT%TZ)" >> $M/summary.txt
|
||
echo DONE >> $M/summary.txt
|