#!/bin/bash # parse.sh: pass/fail and failing test names per mutant output (spec reporter). cd ~/darkwing-scratch/r41/mut for f in M*-*.txt; do p=$(grep -E '^ℹ pass' "$f" | awk '{print $3}'); x=$(grep -E '^ℹ fail' "$f" | awk '{print $3}') echo "$f: pass $p fail $x" [ "$x" != 0 ] && awk '/^✖ failing tests:/{on=1;next} on && /^✖ /{sub(/^✖ /," "); sub(/ \([0-9.]+ms\)$/,""); print}' "$f" | sort -u done