From 79011564903bd53bb036dea4c1f0745e40efb73c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 27 May 2025 02:30:42 -0300 Subject: Makefile: Add switch for picking number of parallel fuzz workers --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b101082..81baec9 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ DESTDIR = LDLIBS = --static GOCFLAGS = -I $(GOLIBDIR) GOLDFLAGS = -L $(GOLIBDIR) +N = `nproc` @@ -130,7 +131,7 @@ check: check-unit check-integration FUZZSEC=1 fuzz/main.bin-check = $(fuzz/main.go:.go=.bin-check) $(fuzz/main.bin-check): - $(EXEC)$*.bin --test.fuzztime=$(FUZZSEC)s \ + $(EXEC)$*.bin --test.fuzztime=$(FUZZSEC)s --test.parallel=$N \ --test.fuzz='.*' --test.fuzzcachedir=tests/fuzz/corpus fuzz: $(fuzz/main.bin-check) -- cgit v1.2.3