Makefile can have specific test args

This commit is contained in:
Mitchell Hashimoto 2014-06-24 14:16:26 -07:00
parent 9acb9535ad
commit 4c71eb35d8
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ CGO_CFLAGS:=-I$(CURDIR)/vendor/libucl/include
CGO_LDFLAGS:=-L$(CURDIR)/vendor/libucl
LIBUCL_NAME=libucl.a
TEST?=./...
TESTARGS?=-timeout=5s
# Windows-only
ifeq ($(OS), Windows_NT)
@ -22,7 +23,7 @@ dev: libucl
libucl: vendor/libucl/$(LIBUCL_NAME)
test: libucl
go test $(TEST) -timeout=5s
go test $(TEST) $(TESTARGS)
vendor/libucl/libucl.a: vendor/libucl
cd vendor/libucl && \