Files

36 lines
839 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Run Luxd e2e tests from the target version against the current state of coreth.
# e.g.,
# ./scripts/tests.e2e.sh
# LUX_VERSION=v1.10.x ./scripts/tests.e2e.sh
# ./scripts/tests.e2e.sh --start-monitors # All arguments are supplied to ginkgo
if ! [[ "$0" =~ scripts/tests.e2e.sh ]]; then
echo "must be run from repository root"
exit 255
fi
# Coreth root directory
CORETH_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)
# Allow configuring the clone path to point to an existing clone
LUXD_CLONE_PATH="${LUXD_CLONE_PATH:-luxd}"
# Always return to the coreth path on exit
function cleanup {
cd "${CORETH_PATH}"
}
trap cleanup EXIT
cd "${LUXD_CLONE_PATH}"
echo "running Luxd e2e tests"
./scripts/run_task.sh test-e2e-ci -- --ginkgo.label-filter='c || uses-c' "${@}"