Files
ankerl_unordered_dense/scripts/fuzz_run.sh
Martin Leitner-Ankerl 78338d4979 Implement replace() with fuzzer and add fuzz targets
This adds replace() to replace the whole internally used container.
It only needs to create the indexing container, so this is relatively
performant. Duplicate entries are discarded.
2022-08-24 08:16:38 +02:00

19 lines
514 B
Bash
Executable File

#!/bin/env bash
set -ev
# Start from a build directory, usually clang_cpp17_release
# ../../scripts/fuzz_run.sh <testname>
#
# Found a crash? Minimize it like so:
# ./test/fuzz_replace -minimize_crash=1 ./crash-123abcdef
FUZZ_TARGET=$1
SCRIPT_DIR=`dirname "$0"`
CORPUS_SMALL=${SCRIPT_DIR}/../data/fuzz/${FUZZ_TARGET}
CORPUS_BIG=CORPUS_BIG/${FUZZ_TARGET}
NUM_JOBS=$(nproc)
mkdir -p ${CORPUS_BIG}
ninja
chrt -i 0 ./test/fuzz_${FUZZ_TARGET} -jobs=${NUM_JOBS} -workers=${NUM_JOBS} ${CORPUS_BIG} ${CORPUS_SMALL}