Files
lean4/tests/elab_bench/run_bench
Garmelon 6a2a884372 chore: migrate pkg tests (#12889)
Also refactor util.sh in the process, so test scripts become easier to
write (inspired in part by lake's test suite).
2026-03-11 18:55:46 +00:00

21 lines
553 B
Bash
Executable File

#!/usr/bin/env bash
source ../env_bench.sh
source_init "$1"
run_before "$1"
TOPIC="elab/$(basename "$1" .lean)"
# `--root` to infer same private names as in the server
# Elab.inServer to allow for arbitrary `#eval`
capture_only "$1" \
"$TEST_DIR/measure.py" -t "$TOPIC" -o "$1.measurements.jsonl" -d -- \
lean --root=.. -DprintMessageEndPos=true -Dlinter.all=false -DElab.inServer=true "${TEST_LEAN_ARGS[@]}" "$1"
check_exit_is_success
normalize_mvar_suffixes
normalize_reference_urls
extract_measurements "$TOPIC"
check_out_file
run_after "$1"