We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb7f64f commit 9ce99d3Copy full SHA for 9ce99d3
run-fuzz.sh
@@ -1,7 +1,11 @@
1
#!/bin/sh
2
3
+# This is for macOS.
4
+# For linux use: NUM_CPUS=$(awk '/^processor/ {++n} END {print n+1}' /proc/cpuinfo)
5
+NUM_CPUS=$(sysctl -n hw.ncpu)
6
+
7
if [ "$1" == "" ]; then
8
cargo +nightly fuzz list
9
else
- cargo +nightly fuzz run $1 -- --stop-after-first-failure -max_len=200000
10
+ cargo +nightly fuzz run $1 --jobs $NUM_CPUS -- --stop-after-first-failure -max_len=200000
11
fi
0 commit comments