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).
12 lines
390 B
Bash
Executable File
12 lines
390 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source ../../env_test.sh
|
|
|
|
# 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_exit_is_fail
|
|
check_out_file
|