aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-27 02:32:15 -0300
committerEuAndreh <eu@euandre.org>2025-05-27 02:32:15 -0300
commitaa855d0dc1c62094d0fbf750f60b5b9f776b47d2 (patch)
tree0180cb53befc9ba5f8951ec828a4d76e80b2edc7
parentmeta.capim: Add with :dependencies key (diff)
downloadpds-main.tar.gz
pds-main.tar.xz
Makefile: Add switch for picking number of parallel fuzz workersHEADmain
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5a2e3a..55581f4 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ DESTDIR =
LDLIBS = --static
GOCFLAGS = -I $(GOLIBDIR)
GOLDFLAGS = -L $(GOLIBDIR)
+N = `nproc`
@@ -131,7 +132,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)