1#!/usr/bin/env bash 2 3#export ASAN_OPTIONS=abort_on_error=1:disable_core=0:unmap_shadow_on_exit=1:disable_coredump=0:detect_leaks=1 4ulimit -c unlimited 5mkdir -p CORPUS_CONNECT 6 7NPROC=1 8 9if [[ "$OSTYPE" == "linux-gnu" ]]; then 10 NPROC=$(nproc) 11elif [[ "$OSTYPE" == "darwin"* ]]; then 12 NPROC=$(sysctl -n hw.ncpu) 13elif [[ "$OSTYPE" == "freebsd"* ]]; then 14 NPROC=$(sysctl -n hw.ncpu) 15else 16 exit 1 17fi 18 19echo "$NPROC" 20 21 22./fuzzer_connect_multi -jobs=64 -timeout=10 -max_len=32000 -use_value_profile=1 CORPUS_CONNECT 23