import re, sys
from pathlib import Path
out=Path(sys.argv[1])
lines=(out/'godebug.txt').read_text().splitlines()
gc=[x for x in lines if x.startswith('gc ')]
assert len(gc)==3, gc
assert all('(forced)' in x for x in gc), gc
assert any(x.startswith('SCHED ') for x in lines), lines
assert 'total: 42' in (out/'run.txt').read_text()
print('gctrace_lines=3 forced=true schedtrace_present=true')
