lean4-htt/examples/init/test.sh
2022-06-13 20:01:43 -04:00

29 lines
500 B
Bash
Executable file

set -ex
./clean.sh
LAKE=${LAKE:-../../build/bin/lake}
# Test `new` and `init` with bad template (should error)
$LAKE new foo bar && exit 1 || true
$LAKE init foo bar && exit 1 || true
# Test `new`
$LAKE new hello.world
$LAKE -d hello-world build
hello-world/build/bin/hello-world
# Test `init`
mkdir hello_world
cd hello_world
../$LAKE init hello_world exe
../$LAKE build
./build/bin/hello_world
# Test `init` on existing package (should error)
../$LAKE init hello_world && exit 1 || true