test: use $LAKE everywhere

This commit is contained in:
Sebastian Ullrich 2021-09-21 13:17:45 +02:00 committed by tydeu
parent dfa959ba30
commit abd617b9a5
12 changed files with 17 additions and 17 deletions

View file

@ -1,4 +1,4 @@
LAKE := ../build/bin/lake
LAKE ?= ../build/bin/lake
all: check-lake test time-bootstrap check-bootstrap test-bootstrapped

View file

@ -1,4 +1,4 @@
set -ex
./build/bin/lake --version
./build/bin/lake self-check
${LAKE:-./build/bin/lake} --version
${LAKE:-./build/bin/lake} self-check

View file

@ -1 +1 @@
../../build/bin/lake build-bin
${LAKE:-../../build/bin/lake} build-bin

View file

@ -1,3 +1,3 @@
cd foo
echo "in directory 'foo'"
../../../build/bin/lake build-bin
${LAKE:-../../../build/bin/lake} build-bin

View file

@ -1 +1 @@
../../build/bin/lake build-bin
${LAKE:-../../build/bin/lake} build-bin

View file

@ -1 +1 @@
../../build/bin/lake build-bin
${LAKE:-../../build/bin/lake} build-bin

View file

@ -1 +1 @@
../../build/bin/lake build-bin
${LAKE:-../../build/bin/lake} build-bin

View file

@ -1,3 +1,3 @@
./clean.sh
../bootstrap/build/bin/lake build-bin
${LAKE:-../bootstrap/build/bin/lake} build-bin
./build/bin/hello

View file

@ -1 +1 @@
../../build/bin/lake build-bin
${LAKE:-../../build/bin/lake} build-bin

View file

@ -4,11 +4,11 @@ set -ex
# Test `new`
../../build/bin/lake new helloNew
${LAKE:-../../build/bin/lake} new helloNew
cd helloNew
test -f lean-toolchain
../../../build/bin/lake build-bin
${LAKE:-../../../build/bin/lake} build-bin
./build/bin/helloNew
cd ..
@ -17,10 +17,10 @@ cd ..
mkdir helloInit
cd helloInit
../../../build/bin/lake init helloInit
../../../build/bin/lake build-bin
${LAKE:-../../../build/bin/lake} init helloInit
${LAKE:-../../../build/bin/lake} build-bin
./build/bin/helloInit
# Test `init` on existing package (should error)
../../../build/bin/lake init helloInit && exit 1 || true
${LAKE:-../../../build/bin/lake} init helloInit && exit 1 || true

View file

@ -1 +1 @@
../../build/bin/lake build-bin -- --foo
${LAKE:-../../build/bin/lake} build-bin -- --foo

View file

@ -1 +1 @@
../../build/bin/lake build-bin
${LAKE:-../../build/bin/lake} build-bin