blob: 34cf79f2bab97a4d375660e33a6d23e8f9385339 [file]
#!/usr/bin/env bash
set -euo pipefail
# Ensure this runs from the lake test directory
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
# Build `LAKE` from this directory or use the provided one
LAKE=${LAKE:-$(lake query lake)}
# Run the test
TEST_DIR="$1"; shift
CMD1="cd \"$TEST_DIR\" && ./test.sh"
CMD2='rc=$?; echo "EXIT: $rc"; exit $rc'
$LAKE env bash -c "$CMD1; $CMD2"