github.com/cgcardona/r-subnet-evm@v0.1.5/scripts/run_ginkgo.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 4 # This script assumes that an AvalancheGo and Subnet-EVM binaries are available in the standard location 5 # within the $GOPATH 6 # The AvalancheGo and PluginDir paths can be specified via the environment variables used in ./scripts/run.sh. 7 8 # Load the versions 9 SUBNET_EVM_PATH=$( 10 cd "$(dirname "${BASH_SOURCE[0]}")" 11 cd .. && pwd 12 ) 13 14 source "$SUBNET_EVM_PATH"/scripts/constants.sh 15 16 source "$SUBNET_EVM_PATH"/scripts/versions.sh 17 18 # Build ginkgo 19 echo "building precompile.test" 20 # to install the ginkgo binary (required for test build and run) 21 go install -v github.com/onsi/ginkgo/v2/ginkgo@${GINKGO_VERSION} 22 23 TEST_SOURCE_ROOT=$(pwd) 24 25 ACK_GINKGO_RC=true ginkgo build ./tests/load 26 27 # By default, it runs all e2e test cases! 28 # Use "--ginkgo.skip" to skip tests. 29 # Use "--ginkgo.focus" to select tests. 30 TEST_SOURCE_ROOT="$TEST_SOURCE_ROOT" ginkgo run -procs=5 tests/precompile \ 31 --ginkgo.vv \ 32 --ginkgo.label-filter=${GINKGO_LABEL_FILTER:-""} 33 34 ./tests/load/load.test \ 35 --ginkgo.vv \ 36 --ginkgo.label-filter=${GINKGO_LABEL_FILTER:-""}