aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'bin/fuzz')
-rwxr-xr-xbin/fuzz8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/fuzz b/bin/fuzz
index 81f45ce..397a550 100755
--- a/bin/fuzz
+++ b/bin/fuzz
@@ -1,7 +1,13 @@
#!/bin/sh
set -eu
+ncpu="$(cat /proc/cpuinfo | grep '^processor' | wc -l)"
+
cd fuzz
cargo afl build --release
mkdir -p out
-cargo afl fuzz -i in -o out -t 10000 target/release/fuzz
+
+tmux new-window cargo afl fuzz -i in -o out -t 10000 -M main_fuzzer target/release/fuzz
+for i in $(seq 2 "$ncpu"); do
+ tmux new-window cargo afl fuzz -i in -o out -t 10000 -S "secondary_fuzzer_$i" target/release/fuzz
+done