github.com/MetalBlockchain/subnet-evm@v0.4.9/scripts/run_ginkgo.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 4 # This script assumes that an MetalGo and Subnet-EVM binaries are available in the standard location 5 # within the $GOPATH 6 # The MetalGo 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 ACK_GINKGO_RC=true ginkgo build ./tests/precompile ./tests/load 24 25 # By default, it runs all e2e test cases! 26 # Use "--ginkgo.skip" to skip tests. 27 # Use "--ginkgo.focus" to select tests. 28 ./tests/precompile/precompile.test \ 29 --ginkgo.vv \ 30 --ginkgo.label-filter=${GINKGO_LABEL_FILTER:-""} 31 32 ./tests/load/load.test \ 33 --ginkgo.vv \ 34 --ginkgo.label-filter=${GINKGO_LABEL_FILTER:-""}