summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 87999417..665c2143 100755
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,8 @@ uninstall: ## Uninstall locally installed RR
rm -f /usr/local/bin/rr
test: ## Run application tests
- #go clean -testcache
+ go clean -testcache
+ docker-compose -f tests/docker-compose.yaml up -d
go test -v -race -cover -tags=debug -covermode=atomic ./utils
go test -v -race -cover -tags=debug -covermode=atomic ./pkg/pipe
go test -v -race -cover -tags=debug -covermode=atomic ./pkg/pool
@@ -44,6 +45,22 @@ test: ## Run application tests
go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/resetter
go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/rpc
go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/static
+ go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/boltdb
+ go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/memory
+ go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/memcached
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/boltdb
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/memory
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/memcached
+ docker-compose -f tests/docker-compose.yaml down
lint: ## Run application linters
golangci-lint run
+kv:
+ docker-compose -f tests/docker-compose.yaml up -d
+ go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/boltdb
+ go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/memory
+ go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/memcached
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/boltdb
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/memory
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/memcached
+ docker-compose -f tests/docker-compose.yaml down