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
9
9
exit 255
10
10
fi
11
11
12
+ SPACESVM_PATH=$(
13
+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
14
+ cd .. && pwd
15
+ )
16
+ source " $SPACESVM_PATH " /scripts/constants.sh
17
+
12
18
# Set default binary directory location
13
19
name=" sqja3uK17MJxfC7AN8nGadBw9JK5BcrsNwNynsqP5Gih8M5Bm"
14
20
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
14
14
exit 255
15
15
fi
16
16
17
+ SPACESVM_PATH=$(
18
+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
19
+ cd .. && pwd
20
+ )
21
+ source " $SPACESVM_PATH " /scripts/constants.sh
22
+
17
23
VERSION=$1
18
24
if [[ -z " ${VERSION} " ]]; then
19
25
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
6
6
exit 255
7
7
fi
8
8
9
+ SPACESVM_PATH=$(
10
+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
11
+ cd .. && pwd
12
+ )
13
+ source " $SPACESVM_PATH " /scripts/constants.sh
14
+
9
15
# to install the ginkgo binary (required for test build and run)
10
16
go install -v github.com/onsi/ginkgo/v2/ginkgo@v2.0.0-rc2
11
17
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ if ! [[ "$0" =~ scripts/tests.lint.sh ]]; then
9
9
exit 255
10
10
fi
11
11
12
+ SPACESVM_PATH=$(
13
+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
14
+ cd .. && pwd
15
+ )
16
+ source " $SPACESVM_PATH " /scripts/constants.sh
17
+
12
18
if [ " $# " -eq 0 ]; then
13
19
# by default, check all source code
14
20
# 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
6
6
exit 255
7
7
fi
8
8
9
+ SPACESVM_PATH=$(
10
+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
11
+ cd .. && pwd
12
+ )
13
+ source " $SPACESVM_PATH " /scripts/constants.sh
14
+
9
15
go 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