Makefile 483 B

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