@@ -13,6 +13,7 @@ BENCH_REFERENCE_REPO := ${BENCH_PATH}/go-tarantool
13
13
BENCH_OPTIONS := -bench=. -run=^Benchmark -benchmem -benchtime=${DURATION} -count=${COUNT}
14
14
GO_TARANTOOL_URL := https://github.com/tarantool/go-tarantool
15
15
GO_TARANTOOL_DIR := ${PROJECT_DIR}/${BENCH_PATH}/go-tarantool
16
+ TAGS :=
16
17
17
18
.PHONY : clean
18
19
clean :
@@ -25,44 +26,44 @@ deps: clean
25
26
26
27
.PHONY : test
27
28
test :
28
- go test ./... -v -p 1
29
+ go test -tags " $( TAGS ) " ./... -v -p 1
29
30
30
31
.PHONY : test-connection-pool
31
32
test-connection-pool :
32
33
@echo " Running tests in connection_pool package"
33
34
go clean -testcache
34
- go test ./connection_pool/ -v -p 1
35
+ go test -tags " $( TAGS ) " ./connection_pool/ -v -p 1
35
36
36
37
.PHONY : test-multi
37
38
test-multi :
38
39
@echo " Running tests in multiconnection package"
39
40
go clean -testcache
40
- go test ./multi/ -v -p 1
41
+ go test -tags " $( TAGS ) " ./multi/ -v -p 1
41
42
42
43
.PHONY : test-queue
43
44
test-queue :
44
45
@echo " Running tests in queue package"
45
46
cd ./queue/ && tarantool -e " require('queue')"
46
47
go clean -testcache
47
- go test ./queue/ -v -p 1
48
+ go test -tags " $( TAGS ) " ./queue/ -v -p 1
48
49
49
50
.PHONY : test-uuid
50
51
test-uuid :
51
52
@echo " Running tests in UUID package"
52
53
go clean -testcache
53
- go test ./uuid/ -v -p 1
54
+ go test -tags " $( TAGS ) " ./uuid/ -v -p 1
54
55
55
56
.PHONY : test-main
56
57
test-main :
57
58
@echo " Running tests in main package"
58
59
go clean -testcache
59
- go test . -v -p 1
60
+ go test -tags " $( TAGS ) " . -v -p 1
60
61
61
62
.PHONY : coverage
62
63
coverage :
63
64
go clean -testcache
64
65
go get golang.org/x/tools/cmd/cover
65
- go test ./... -v -p 1 -covermode=atomic -coverprofile=$(COVERAGE_FILE ) -coverpkg=./...
66
+ go test -tags " $( TAGS ) " ./... -v -p 1 -covermode=atomic -coverprofile=$(COVERAGE_FILE ) -coverpkg=./...
66
67
go tool cover -func=$(COVERAGE_FILE )
67
68
68
69
.PHONY : coveralls
@@ -82,7 +83,7 @@ ${BENCH_PATH} bench-deps:
82
83
.PHONY : bench
83
84
${BENCH_FILE} bench : ${BENCH_PATH}
84
85
@echo " Running benchmark tests from the current branch"
85
- go test ${TEST_PATH} ${BENCH_OPTIONS} 2>&1 \
86
+ go test -tags " $( TAGS ) " ${TEST_PATH} ${BENCH_OPTIONS} 2>&1 \
86
87
| tee ${BENCH_FILE}
87
88
benchstat ${BENCH_FILE}
88
89
@@ -92,7 +93,7 @@ ${GO_TARANTOOL_DIR}:
92
93
93
94
${REFERENCE_FILE} : ${GO_TARANTOOL_DIR}
94
95
@echo " Running benchmark tests from master for using results in bench-diff target"
95
- cd ${GO_TARANTOOL_DIR} && git pull && go test ./... ${BENCH_OPTIONS} 2>&1 \
96
+ cd ${GO_TARANTOOL_DIR} && git pull && go test -tags $( TAGS ) ./... ${BENCH_OPTIONS} 2>&1 \
96
97
| tee ${REFERENCE_FILE}
97
98
98
99
bench-diff : ${BENCH_FILES}
0 commit comments