Files
lean4/tests/elab_fail/run_test
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

18 lines
433 B
Bash
Executable File

#!/usr/bin/env bash
source ../env_test.sh
source_init "$1"
run_before "$1"
# `--root` to infer same private names as in the server
# Elab.inServer to allow for arbitrary `#eval`
capture_only "$1" \
lean --root=.. -DprintMessageEndPos=true -Dlinter.all=false -DElab.inServer=true "${TEST_LEAN_ARGS[@]}" "$1"
check_exit_is_fail
normalize_mvar_suffixes
normalize_reference_urls
normalize_measurements
check_out_file
run_after "$1"