Skip to content

Commit 23e9718

Browse files
committed
[temp] probe: run the one case under the debugger
1 parent 86d752e commit 23e9718

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

‎.github/workflows/probe-win-unit-av.yml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,25 @@ jobs:
7777
PY
7878
)
7979
echo "args=$args"
80-
"$cdb" -cf cdb.txt "$(cygpath -w "$exe")" > cdb1.log 2>&1
80+
w=$(cygpath -w "$exe")
81+
# The cases of this program, by the protocol's listing; then the one that faults.
82+
rm -f list.ndjson; MTEST_PROTOCOL=1 MTEST_REPORT="$(cygpath -w "$PWD/list.ndjson")" MTEST_MODE=list "$w" > /dev/null 2>&1
83+
grep -a 'AStatedLevelIsHonoured' list.ndjson | head -3
84+
python - <<'PY'
85+
import json
86+
ids = set()
87+
for line in open("list.ndjson", encoding="utf-8", errors="replace"):
88+
try: e = json.loads(line)
89+
except Exception: continue
90+
for k in ("id", "case", "name"):
91+
v = e.get(k)
92+
if isinstance(v, str) and "AStatedLevelIsHonoured" in v: ids.add(v)
93+
open("select.txt", "w", newline="\n").write("\n".join(sorted(ids)) + "\n")
94+
print("selected:", sorted(ids))
95+
PY
96+
export MTEST_PROTOCOL=1 MTEST_REPORT="$(cygpath -w "$PWD/run.ndjson")" MTEST_SELECT="$(cygpath -w "$PWD/select.txt")"
97+
"$w" > direct.log 2>&1; echo "direct exit: $?"; tail -4 direct.log
98+
"$cdb" -cf cdb.txt "$w" > cdb1.log 2>&1
8199
echo "cdb exit: $?"; wc -l cdb1.log
82100
n=$(grep -a -n '^==AV==' cdb1.log | head -1 | cut -d: -f1)
83101
echo "AV at line ${n:-none}"

0 commit comments

Comments
 (0)