aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-07-25 16:02:30 +0200
committerClément Bénier <clement.benier@iot.bzh>2018-07-25 16:09:32 +0200
commit4edc85706942a10085947ef457fca9e4f209a21a (patch)
treef24357b4c37c94421bf0d844b6856bfea512b99b /Makefile
parentb286ced30a859e2238d13450d61ea0110a53b8a9 (diff)
sdk_test: draft in progresssandbox/test
add tests for testing sdk - draft Change-Id: I81f2f4ff75d6256fd092afd5213ea4f3370fcc68 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 48bf907..4b0dea8 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
+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)