lean4-htt/examples/init/test.sh
2021-10-09 19:24:28 -04:00

26 lines
471 B
Bash
Executable file

set -ex
./clean.sh
# Test `new`
${LAKE:-../../build/bin/lake} new hello.world
cd hello-world
test -f lean-toolchain
${LAKE:-../../../build/bin/lake} build
./build/bin/hello-world
cd ..
# Test `init`
mkdir hello_world
cd hello_world
${LAKE:-../../../build/bin/lake} init hello_world
${LAKE:-../../../build/bin/lake} build
./build/bin/hello_world
# Test `init` on existing package (should error)
${LAKE:-../../../build/bin/lake} init hello_world && exit 1 || true