Files
evm/scripts/run_ginkgo.sh
2024-01-03 09:50:41 +01:00

36 lines
1007 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# This script assumes that an Luxd and EVM binaries are available in the standard location
# within the $GOPATH
# The Luxd and PluginDir paths can be specified via the environment variables used in ./scripts/run.sh.
# Load the versions
SUBNET_EVM_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)
source "$SUBNET_EVM_PATH"/scripts/constants.sh
source "$SUBNET_EVM_PATH"/scripts/versions.sh
# Build ginkgo
# to install the ginkgo binary (required for test build and run)
go install -v github.com/onsi/ginkgo/v2/ginkgo@${GINKGO_VERSION}
TEST_SOURCE_ROOT=$(pwd)
ACK_GINKGO_RC=true ginkgo build ./tests/load
# By default, it runs all e2e test cases!
# Use "--ginkgo.skip" to skip tests.
# Use "--ginkgo.focus" to select tests.
TEST_SOURCE_ROOT="$TEST_SOURCE_ROOT" ginkgo run -procs=5 tests/precompile \
--ginkgo.vv \
--ginkgo.label-filter=${GINKGO_LABEL_FILTER:-""}
./tests/load/load.test \
--ginkgo.vv \
--ginkgo.label-filter=${GINKGO_LABEL_FILTER:-""}