Skip to content

Commit

Permalink
WIP: try to reproduce Example_connectionPool
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-jukovec committed May 12, 2023
1 parent 45a88ec commit 0c0151f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,14 @@ golangci-lint:
golangci-lint run -E goimports -D errcheck

.PHONY: test
test:
@echo "Running all packages tests"
go clean -testcache
go test -tags "$(TAGS)" ./... -v -p 1
test: test-queue

.PHONY: testdata
testdata:
(cd ./testdata; ./generate.sh)

.PHONY: testrace
testrace:
@echo "Running all packages tests with data race detector"
go clean -testcache
go test -race -tags "$(TAGS)" ./... -v -p 1
testrace: testrace-queue

.PHONY: test-connection-pool
test-connection-pool:
Expand Down Expand Up @@ -84,9 +78,16 @@ test-multi:
.PHONY: test-queue
test-queue:
@echo "Running tests in queue package"
cd ./queue/ && tarantool -e "require('queue')"
cd ./queue/testdata && tarantool -e "require('queue')"
go clean -testcache
for i in `seq 1 100`; do go test -tags "$(TAGS)" ./queue/ -run Example_connectionPool -count 1 -v -p 1 || exit 1; done

.PHONY: testrace-queue
testrace-queue:
@echo "Running tests in queue package"
cd ./queue/testdata && tarantool -e "require('queue')"
go clean -testcache
go test -tags "$(TAGS)" ./queue/ -v -p 1
for i in `seq 1 100`; do go test -race -tags "$(TAGS)" ./queue/ -run Example_connectionPool -count 1 -v -p 1 || exit 1; done

.PHONY: test-uuid
test-uuid:
Expand Down

0 comments on commit 0c0151f

Please sign in to comment.