summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-27 02:34:47 -0300
committerEuAndreh <eu@euandre.org>2025-05-27 02:34:47 -0300
commit6071b32e9a6ab214a18c7ef7ffe59c0d6d68e9ca (patch)
treef186cc8c1ff053128e505e9d99b5a10d7e0198ac
parentmeta.capim: Add with :dependencies key (diff)
downloadscrypt-6071b32e9a6ab214a18c7ef7ffe59c0d6d68e9ca.tar.gz
scrypt-6071b32e9a6ab214a18c7ef7ffe59c0d6d68e9ca.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 ca2fa31..ee80b49 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ DESTDIR =
LDLIBS = --static -lscrypt-kdf
GOCFLAGS = -I $(GOLIBDIR)
GOLDFLAGS = -L $(GOLIBDIR)
+N = `nproc`
@@ -176,7 +177,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)