tests: the restart and logs groups, the nine-group checklist and the fixture clean-up (#25)

This commit is contained in:
2026-11-15 12:52:20 +01:00
parent 70a984c55a
commit cedb80aa96
7 changed files with 474 additions and 13 deletions
+4 -1
View File
@@ -25,6 +25,9 @@
# slice 9 (#24): the canonical tile URL and the "any explored cell allows" gate
# c1: a tile is allowed without any explored cell | c2: every overlapping cell is required
# c3: an out-of-grid coordinate is accepted | c4: a leading-zero coordinate is canonical
# d3: scene.set accepts a patch with no field (slice 10, #25)
# slice 10 (#25): scene.set accepts a patch with no field at all
run d3 "scene.set accepts a patch with no field" server/world.nim 's/^ if not any: return none(ScenePatch)$/ discard/' "a patch with none is invalid"
# Parallel: MUTATION_JOBS (default nproc/4) jobs, each in its own temp copy + nimcache; output collected, printed in fixed order.
# Tests run with FFF_MUTATION=1 (iteration counts ~/10, see tests/testutil.nim scaled()); only test files holding an expected
# test are run per mutation (control runs all). Debug build. Wrapped in systemd-inhibit (sleep:idle) when that works.
@@ -183,7 +186,7 @@ run c4 "a leading-zero tile coordinate is canonical" server/tiles.nim "s/ if ra
wait
rc=0; : > "$LOG"
for id in control a b c d1 d2 e f g h i j k l m n o p q r s t u v w x y z z2 aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw ax ay az b1 b2 b3 b4 c1 c2 c3 c4; do
for id in control a b c d1 d2 d3 e f g h i j k l m n o p q r s t u v w x y z z2 aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw ax ay az b1 b2 b3 b4 c1 c2 c3 c4; do
[ -f "$T/$id/res" ] && cat "$T/$id/res" >> "$LOG"
if [ -f "$T/$id/verdict" ]; then tee -a "$LOG" < "$T/$id/verdict"; [ "$(cat "$T/$id/rc")" = 0 ] || rc=1
else echo "$id: NO RESULT (job killed?)" | tee -a "$LOG"; rc=1; fi