Makefile 528 B

123456789101112131415161718192021
  1. all: testdeps
  2. go test ./...
  3. go test ./... -short -race
  4. env GOOS=linux GOARCH=386 go test ./...
  5. go vet
  6. testdeps: testdata/redis/src/redis-server
  7. bench: testdeps
  8. go test ./... -test.run=NONE -test.bench=. -test.benchmem
  9. .PHONY: all test testdeps bench
  10. testdata/redis:
  11. mkdir -p $@
  12. wget -qO- https://github.com/antirez/redis/archive/unstable.tar.gz | tar xvz --strip-components=1 -C $@
  13. testdata/redis/src/redis-server: testdata/redis
  14. sed -i.bak 's/libjemalloc.a/libjemalloc.a -lrt/g' $</src/Makefile
  15. cd $< && make all