Skip to content

Commit

Permalink
Run functional tests in parallel
Browse files Browse the repository at this point in the history
It seems to take lot of time running locally.

Signed-off-by: rabi <[email protected]>
  • Loading branch information
rabi committed Oct 14, 2024
1 parent 7456407 commit f0103e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ golangci-lint:
test -s $(LOCALBIN)/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
$(LOCALBIN)/golangci-lint run --fix

MAX_PROCS := 5
NUM_PROCS := $(shell expr $(shell nproc --ignore 2) / 2)
PROCS ?= $(shell if [ $(NUM_PROCS) -gt $(MAX_PROCS) ]; then echo $(MAX_PROCS); else echo $(NUM_PROCS); fi)
PROC_CMD = --procs $(PROCS)

.PHONY: test
test: manifests generate gowork fmt vet envtest ginkgo ginkgo-run ## Run ginkgo tests with dependencies.

Expand Down

0 comments on commit f0103e0

Please sign in to comment.