2015-01-24 15:12:48 +03:00
|
|
|
all: testdeps
|
2016-03-14 14:17:33 +03:00
|
|
|
go test ./... -test.cpu=1,2,4
|
|
|
|
go test ./... -test.short -test.race
|
2015-01-24 15:12:48 +03:00
|
|
|
|
2016-03-12 13:25:59 +03:00
|
|
|
testdeps: testdata/redis/src/redis-server
|
2015-01-24 15:12:48 +03:00
|
|
|
|
2016-03-12 13:38:52 +03:00
|
|
|
bench: testdeps
|
|
|
|
go test ./... -test.run=NONE -test.bench=. -test.benchmem
|
|
|
|
|
|
|
|
.PHONY: all test testdeps bench
|
2015-01-24 15:12:48 +03:00
|
|
|
|
2016-03-12 13:25:59 +03:00
|
|
|
testdata/redis:
|
2015-01-24 15:12:48 +03:00
|
|
|
mkdir -p $@
|
2015-09-28 11:13:32 +03:00
|
|
|
wget -qO- https://github.com/antirez/redis/archive/unstable.tar.gz | tar xvz --strip-components=1 -C $@
|
2015-01-24 15:12:48 +03:00
|
|
|
|
2016-03-12 13:25:59 +03:00
|
|
|
testdata/redis/src/redis-server: testdata/redis
|
2015-01-24 15:12:48 +03:00
|
|
|
cd $< && make all
|