1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-22 00:15:39 +00:00

Makefile: ensure tests are not parallel

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2024-03-14 13:40:07 -04:00
parent 9c8328e386
commit 711c1b0259
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED

View file

@ -39,10 +39,10 @@ CLEAN_FILES += .test .test.tags
NO_VENDOR_DIR := $(shell find . -type f -name '*.go' ! -path './vendor*' ! -path './.git*' ! -path './.vscode*' -exec dirname "{}" \; | sort -u) NO_VENDOR_DIR := $(shell find . -type f -name '*.go' ! -path './vendor*' ! -path './.git*' ! -path './.vscode*' -exec dirname "{}" \; | sort -u)
.test: $(SOURCE_FILES) .test: $(SOURCE_FILES)
go test -v $(NO_VENDOR_DIR) && touch $@ go test -p 1 -v $(NO_VENDOR_DIR) && touch $@
.test.tags: $(SOURCE_FILES) .test.tags: $(SOURCE_FILES)
set -e ; for tag in $(TAGS) ; do go test -tags $$tag -v $(NO_VENDOR_DIR) ; done && touch $@ set -e ; for tag in $(TAGS) ; do go test -p 1 -tags $$tag -v $(NO_VENDOR_DIR) ; done && touch $@
.PHONY: lint .PHONY: lint
lint: .lint lint: .lint