You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
504 B
21 lines
504 B
6 years ago
|
all: testdeps
|
||
|
go test ./...
|
||
|
go test ./... -short -race
|
||
4 years ago
|
go test ./... -run=NONE -bench=. -benchmem
|
||
6 years ago
|
env GOOS=linux GOARCH=386 go test ./...
|
||
4 years ago
|
golangci-lint run
|
||
6 years ago
|
|
||
|
testdeps: testdata/redis/src/redis-server
|
||
|
|
||
|
bench: testdeps
|
||
|
go test ./... -test.run=NONE -test.bench=. -test.benchmem
|
||
|
|
||
|
.PHONY: all test testdeps bench
|
||
|
|
||
|
testdata/redis:
|
||
|
mkdir -p $@
|
||
4 years ago
|
wget -qO- http://download.redis.io/redis-stable.tar.gz | tar xvz --strip-components=1 -C $@
|
||
6 years ago
|
|
||
|
testdata/redis/src/redis-server: testdata/redis
|
||
|
cd $< && make all
|