14 lines
520 B
Bash
Executable file
14 lines
520 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -exo pipefail
|
|
|
|
LAKE=${LAKE:-../../build/bin/lake}
|
|
$LAKE script list | tee produced.out
|
|
$LAKE run scripts/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 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
|
|
|
|
diff --strip-trailing-cr expected.out produced.out
|