lean4-htt/test/62/test.sh
2022-07-08 23:05:12 -04:00

12 lines
350 B
Bash
Executable file

#!/usr/bin/env bash
set -euxo pipefail
# skip if no elan found
command -v elan > /dev/null || (echo "elan not found; skipping test"; exit 0)
./clean.sh
lake +leanprover/lean4:4.0.0-m3 new foo
cd foo
lake +leanprover/lean4:4.0.0-m3 build | grep -m1 foo
cp ../../../lean-toolchain lean-toolchain
${LAKE:-../../../build/bin/lake} build | grep -m1 foo