Skip to content

Commit 357a9af

Browse files
Merge pull request #1132 from rabi/func_parallel
Run functional tests in parallel
2 parents 4642d04 + f0103e0 commit 357a9af

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ golangci-lint:
167167
test -s $(LOCALBIN)/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
168168
$(LOCALBIN)/golangci-lint run --fix
169169

170+
MAX_PROCS := 5
171+
NUM_PROCS := $(shell expr $(shell nproc --ignore 2) / 2)
172+
PROCS ?= $(shell if [ $(NUM_PROCS) -gt $(MAX_PROCS) ]; then echo $(MAX_PROCS); else echo $(NUM_PROCS); fi)
173+
PROC_CMD = --procs $(PROCS)
174+
170175
.PHONY: test
171176
test: manifests generate gowork fmt vet envtest ginkgo ginkgo-run ## Run ginkgo tests with dependencies.
172177

0 commit comments

Comments
 (0)