aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-26 21:43:39 -0300
committerEuAndreh <eu@euandre.org>2025-05-26 21:43:39 -0300
commit25af4baaab8db74ba809c863e93dd56e6ffb23ed (patch)
tree016f3f036e27cc230828d959b5fe293dc5b1c130
parentmeta.capim: Add with :dependencies key (diff)
downloadgotext-25af4baaab8db74ba809c863e93dd56e6ffb23ed.tar.gz
gotext-25af4baaab8db74ba809c863e93dd56e6ffb23ed.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 b38212c..32705d1 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ DESTDIR =
LDLIBS = --static
GOCFLAGS = -I $(GOLIBDIR)
GOLDFLAGS = -L $(GOLIBDIR)
+N = `nproc`
@@ -185,7 +186,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)