From fde95ddc93f814167866e47fdb9c14b270aea285 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Wed, 23 Mar 2022 13:12:50 +0100 Subject: [PATCH] make: Also run tests in subfolders. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index ca4100d..694a7cd 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ GOVERSION := $(shell "$(GO)" env GOVERSION | sed "s|go||" ) BINDIR := "$(CURDIR)/bin" VERSION := $(shell "$(CURDIR)/scripts/get-version.sh") TARVERSION := $(shell "$(CURDIR)/scripts/get-version.sh" --tar) +PACKAGENAME := github.com/strukturag/nextcloud-spreed-signaling ifneq ($(VERSION),) INTERNALLDFLAGS := -X main.version=$(VERSION) else @@ -73,9 +74,15 @@ fmt: hook vet: common $(GO) vet . + $(GO) vet $(PACKAGENAME)/client + $(GO) vet $(PACKAGENAME)/proxy + $(GO) vet $(PACKAGENAME)/server test: vet common $(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) . + $(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) $(PACKAGENAME)/client + $(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) $(PACKAGENAME)/proxy + $(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) $(PACKAGENAME)/server cover: vet common rm -f cover.out && \