Joey Armstrong | 5f51f2e | 2023-01-17 17:06:26 -0500 | [diff] [blame^] | 1 | all: 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 | |
| 9 | testdeps: testdata/redis/src/redis-server |
| 10 | |
| 11 | bench: testdeps |
| 12 | go test ./... -test.run=NONE -test.bench=. -test.benchmem |
| 13 | |
| 14 | .PHONY: all test testdeps bench |
| 15 | |
| 16 | testdata/redis: |
| 17 | mkdir -p $@ |
| 18 | wget -qO- http://download.redis.io/redis-stable.tar.gz | tar xvz --strip-components=1 -C $@ |
| 19 | |
| 20 | testdata/redis/src/redis-server: testdata/redis |
| 21 | cd $< && make all |