mirror of
https://github.com/redis/go-redis.git
synced 2025-07-16 13:21:51 +03:00
16 lines
510 B
Makefile
16 lines
510 B
Makefile
test:
|
|
@if [ -z "$(REDIS_VERSION)" ]; then \
|
|
echo "REDIS_VERSION not set, running all tests"; \
|
|
go test -v ./...; \
|
|
else \
|
|
MAJOR_VERSION=$$(echo "$(REDIS_VERSION)" | cut -d. -f1); \
|
|
if [ "$$MAJOR_VERSION" -ge 8 ]; then \
|
|
echo "REDIS_VERSION $(REDIS_VERSION) >= 8, running all tests"; \
|
|
go test -v ./...; \
|
|
else \
|
|
echo "REDIS_VERSION $(REDIS_VERSION) < 8, skipping vector_sets tests"; \
|
|
go test -v ./... -run '^(?!.*(?:vectorset|ExampleClient_vectorset)).*$$'; \
|
|
fi; \
|
|
fi
|
|
|
|
.PHONY: test |