lean4-htt/tests/misc_dir/plugin/run_test.sh
Garmelon 6b7f0ad5fc
chore: check test output before exit code in piles (#12947)
This improves the feedback when tests fail. Getting a diff is more
useful than a vague exit code.
2026-03-17 16:34:21 +00:00

8 lines
344 B
Bash

# LEAN_EXPORTING needs to be defined for .c files included in shared libraries
lean --c=SnakeLinter.c SnakeLinter.lean
leanc ${LEANC_OPTS-} -O3 -DNDEBUG -DLEAN_EXPORTING -shared -o SnakeLinter.so SnakeLinter.c
capture_only SnakeLinter.lean \
lean -Dlinter.all=false --plugin=SnakeLinter.so SnakeLinter.lean
check_out_file
check_exit_is_fail