23 lines
803 B
Bash
Executable file
23 lines
803 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -exo pipefail
|
|
|
|
# make prefix `/` behave on MSYS2
|
|
[ "$OSTYPE" == "msys" ] && export MSYS2_ARG_CONV_EXCL=*
|
|
|
|
./clean.sh
|
|
LAKE=${LAKE:-../../build/bin/lake}
|
|
|
|
$LAKE update
|
|
$LAKE script list | tee produced.out
|
|
$LAKE run /greet | tee -a produced.out
|
|
$LAKE script run greet me | tee -a produced.out
|
|
$LAKE script doc greet | tee -a produced.out
|
|
$LAKE script run hello | tee -a produced.out
|
|
$LAKE script run dep/hello | tee -a produced.out
|
|
($LAKE script run nonexistant 2>&1 | tee -a produced.out) && false || true
|
|
($LAKE script doc nonexistant 2>&1 | tee -a produced.out) && false || true
|
|
$LAKE scripts | tee -a produced.out
|
|
$LAKE run | tee -a produced.out
|
|
|
|
# FIXME: Figure out why indent in USAGE disappears in the CI
|
|
diff --ignore-all-space --strip-trailing-cr expected.out produced.out
|