blob: 49e4c96f068b5371440d6db0f7a733343e00a45e [file] [log] [blame]
Joey Armstrong5f51f2e2023-01-17 17:06:26 -05001all: testdeps
2 go test ./...
3 go test ./... -short -race
4 go test ./... -run=NONE -bench=. -benchmem
5 env GOOS=linux GOARCH=386 go test ./...
6 go vet
7 golangci-lint run
8
9testdeps: testdata/redis/src/redis-server
10
11bench: testdeps
12 go test ./... -test.run=NONE -test.bench=. -test.benchmem
13
14.PHONY: all test testdeps bench
15
16testdata/redis:
17 mkdir -p $@
18 wget -qO- http://download.redis.io/redis-stable.tar.gz | tar xvz --strip-components=1 -C $@
19
20testdata/redis/src/redis-server: testdata/redis
21 cd $< && make all