File: run-fuzzer.sh

package info (click to toggle)
rust-async-h1 2.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 332 kB
  • sloc: sh: 11; makefile: 2
file content (14 lines) | stat: -rwxr-xr-x 330 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

TARGET_NAME="$1"
if [ -z "$TARGET_NAME" ]; then
  echo "$0: target name required" >&2
  exit 1
fi

mkdir -p "./fuzz/corpus/${TARGET_NAME}/"
cargo +nightly fuzz run "${TARGET_NAME}" \
  "./fuzz/corpus/${TARGET_NAME}/" "./fuzz/init_corpus/${TARGET_NAME}/" -- \
  -dict="./fuzz/dicts/${TARGET_NAME}" \
  -timeout=3