github.com/MetalBlockchain/subnet-evm@v0.4.9/scripts/build_test.sh (about) 1 #!/usr/bin/env bash 2 3 set -o errexit 4 set -o nounset 5 set -o pipefail 6 7 export GOGC=25 8 9 # Root directory 10 SUBNET_EVM_PATH=$( 11 cd "$(dirname "${BASH_SOURCE[0]}")" 12 cd .. && pwd 13 ) 14 15 # Load the versions 16 source "$SUBNET_EVM_PATH"/scripts/versions.sh 17 18 # Load the constants 19 source "$SUBNET_EVM_PATH"/scripts/constants.sh 20 21 # We pass in the arguments to this script directly to enable easily passing parameters such as enabling race detection, 22 # parallelism, and test coverage. 23 # DO NOT RUN "tests/precompile" or "tests/load" since it's run by ginkgo 24 go test -coverprofile=coverage.out -covermode=atomic -timeout="30m" $@ $(go list ./... | grep -v tests/precompile | grep -v tests/load)