This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ if ! [[ "$0" =~ scripts/build.sh ]]; then
99 exit 255
1010fi
1111
12+ SPACESVM_PATH=$(
13+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
14+ cd .. && pwd
15+ )
16+ source " $SPACESVM_PATH " /scripts/constants.sh
17+
1218# Set default binary directory location
1319name=" sqja3uK17MJxfC7AN8nGadBw9JK5BcrsNwNynsqP5Gih8M5Bm"
1420
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Set the CGO flags to use the portable version of BLST
4+ #
5+ # We use "export" here instead of just setting a bash variable because we need
6+ # to pass this flag to all child processes spawned by the shell.
7+ export CGO_CFLAGS=" -O -D__BLST_PORTABLE__"
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ if ! [[ "$0" =~ scripts/run.sh ]]; then
1414 exit 255
1515fi
1616
17+ SPACESVM_PATH=$(
18+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
19+ cd .. && pwd
20+ )
21+ source " $SPACESVM_PATH " /scripts/constants.sh
22+
1723VERSION=$1
1824if [[ -z " ${VERSION} " ]]; then
1925 echo " Missing version argument!"
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ if ! [[ "$0" =~ scripts/tests.integration.sh ]]; then
66 exit 255
77fi
88
9+ SPACESVM_PATH=$(
10+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
11+ cd .. && pwd
12+ )
13+ source " $SPACESVM_PATH " /scripts/constants.sh
14+
915# to install the ginkgo binary (required for test build and run)
1016go install -v github.com/onsi/ginkgo/v2/
[email protected] 1117
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ if ! [[ "$0" =~ scripts/tests.lint.sh ]]; then
99 exit 255
1010fi
1111
12+ SPACESVM_PATH=$(
13+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
14+ cd .. && pwd
15+ )
16+ source " $SPACESVM_PATH " /scripts/constants.sh
17+
1218if [ " $# " -eq 0 ]; then
1319 # by default, check all source code
1420 # to test only "mempool" package
Original file line number Diff line number Diff line change @@ -6,4 +6,10 @@ if ! [[ "$0" =~ scripts/tests.unit.sh ]]; then
66 exit 255
77fi
88
9+ SPACESVM_PATH=$(
10+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
11+ cd .. && pwd
12+ )
13+ source " $SPACESVM_PATH " /scripts/constants.sh
14+
915go test -race -timeout=" 3m" -coverprofile=" coverage.out" -covermode=" atomic" $( go list ./... | grep -v tests)
You can’t perform that action at this time.
0 commit comments