X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;h=f7f7a9a9789b844d7fe86cea4dbe9e1aa37909db;hb=0385142d33663cb70204123ed3680d58efd2ad90;hp=99fbb555d5329c6afcae9c265291ca50de81adf5;hpb=b7bc9102de461eb880d951f16bdd9ded74e43a4f;p=src%2Fxds%2Fxds-server.git diff --git a/Makefile b/Makefile index 99fbb55..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) @@ -149,7 +153,7 @@ webapp: webapp/install webapp/install: (cd webapp && npm install) - @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; } + @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; } || true .PHONY: scripts scripts: