summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-08-21 18:58:26 +0200
committerClément Bénier <clement.benier@iot.bzh>2018-08-21 18:58:32 +0200
commitc095e1ea9a9e38f020ce4ae852d97c712be910b6 (patch)
treece085c43116ceb9eda10fd79cfc3d18ecfe6387a /Makefile
parent3c40079d8360c15f0ce52a6c11a2bc2555177463 (diff)
parent2fb2226b666e7a8a21dc8b852188b75c06e2cfc8 (diff)
Merge remote-tracking branch 'origin/sandbox/benierc/test'
Change-Id: Idc200f10e217119df9edfebbaf839c5fd45b19a4 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 705b670..f7f7a9a 100644
--- a/Makefile
+++ b/Makefile
@@ -120,7 +120,11 @@ xds: scripts tools/syncthing/copytobin
@cd $(ROOT_SRCDIR); $(BUILD_ENV_FLAGS) go build $(VERBOSE_$(V)) -i -o $(LOCAL_BINDIR)/$(TARGET)$(EXT) -ldflags "$(GO_LDFLAGS) -X main.AppVersion=$(VERSION) -X main.AppSubVersion=$(SUB_VERSION)" -gcflags "$(GO_GCFLAGS)" .
test: tools/glide
- go test --race $(shell $(LOCAL_TOOLSDIR)/glide novendor)
+ifndef name
+ go test --race ./test -v
+else
+ go test --race ./test -v -run $(name)
+endif
vet: tools/glide
go vet $(shell $(LOCAL_TOOLSDIR)/glide novendor)