Files
evm/scripts/run_ginkgo_warp.sh
2025-07-18 01:55:16 +00:00

24 lines
692 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# This script assumes that a Lux and EVM binaries are available in the standard location
# within the $GOPATH
# The Lux and PluginDir paths can be specified via the environment variables used in ./scripts/run.sh.
SUBNET_EVM_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)
source "$SUBNET_EVM_PATH"/scripts/constants.sh
EXTRA_ARGS=()
LUXD_BUILD_PATH="${LUXD_BUILD_PATH:-}"
if [[ -n "${LUXD_BUILD_PATH}" ]]; then
EXTRA_ARGS=("--luxd-path=${LUXD_BUILD_PATH}/luxd")
echo "Running with extra args:" "${EXTRA_ARGS[@]}"
fi
"${SUBNET_EVM_PATH}"/bin/ginkgo -vv --label-filter="${GINKGO_LABEL_FILTER:-}" ./tests/warp -- "${EXTRA_ARGS[@]}"