FRET/run_eval.sh

31 lines
971 B
Bash
Executable File

#!/usr/bin/env bash
# Configuration
export CORES=64 # Number of physical cores
export RUNTIME=86400 # 24 hours in seconds
export TARGET_REPLICA_NUMBER=9
export RANDOM_REPLICA_NUMBER=1
export MULTIJOB_REPLICA_NUMBER=3
if [[ -z "$INSIDE_DEVSHELL" ]]; then
echo "This script should be run inside a nix-shell. Run 'nix develop' or 'nix-shell' first."
exit 1
fi
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
cd LibAFL/fuzzers/FRET/benchmark
export BENCHDIR="eval_$(date -I)"
# prepare all fuzzer configurations
snakemake --keep-incomplete -n --cores $CORES all_bins
# Run the eval examples from the paper
snakemake --keep-incomplete -n --cores $CORES eval_bytes eval_int eval_full waters_multi
# plot the resutls
snakemake --keep-incomplete -n --cores $CORES plot_benchmarks
# See images in $BENCHDIR
snakemake --keep-incomplete -n --cores $CORES plot_traces
# See HTML files in $BENCHDIR/timedump/*/ for traces of the worst cases
cd -