Also refactor util.sh in the process, so test scripts become easier to write (inspired in part by lake's test suite).
14 lines
382 B
Bash
Executable file
14 lines
382 B
Bash
Executable file
#!/usr/bin/env bash
|
|
source ../../env_test.sh
|
|
|
|
# IO.Process.exit (used by the file worker) seems to be incompatible with LSAN
|
|
# TODO: investigate or work around
|
|
export ASAN_OPTIONS=detect_leaks=0
|
|
|
|
lake build
|
|
|
|
FILE=InverseModuleHierarchy/BasicTest.lean
|
|
capture_only "$FILE" \
|
|
lean -Dlinter.all=false --run run_test.lean -p "$(realpath "$FILE")"
|
|
check_exit_is_success
|
|
check_out_file
|