mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 10:24:07 +00:00
Also refactor util.sh in the process, so test scripts become easier to write (inspired in part by lake's test suite).
21 lines
553 B
Bash
Executable File
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"
|