From 9531dc1ac018d0dcd33a9e6fcc2566ef068d17c3 Mon Sep 17 00:00:00 2001 From: Alwin Berger Date: Thu, 11 Sep 2025 07:31:16 +0000 Subject: [PATCH] run_eval.sh: use values a default --- run_eval.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/run_eval.sh b/run_eval.sh index 83f08cd..2c6accf 100755 --- a/run_eval.sh +++ b/run_eval.sh @@ -1,13 +1,13 @@ #!/usr/bin/env bash # Configuration -export CORES=64 # Number of physical cores -export RUNTIME=86400 # 24 hours in seconds -export TARGET_REPLICA_NUMBER=12 -export RANDOM_REPLICA_NUMBER=3 -export MULTIJOB_REPLICA_NUMBER=3 +export CORES=${CORES:-64} # Number of physical cores +export RUNTIME=${RUNTIME:-86400} # 24 hours in seconds +export TARGET_REPLICA_NUMBER=${TARGET_REPLICA_NUMBER:-12} +export RANDOM_REPLICA_NUMBER=${RANDOM_REPLICA_NUMBER:-3} +export MULTIJOB_REPLICA_NUMBER=${MULTIJOB_REPLICA_NUMBER:-3} -if [[ -z "$INSIDE_DEVSHELL" ]]; then +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 @@ -17,7 +17,7 @@ cd "$SCRIPT_DIR" cd LibAFL/fuzzers/FRET/benchmark -export BENCHDIR="eval_$(date -I)" +export BENCHDIR="${BENCHDIR:-eval_$(date -I)}" # prepare all fuzzer configurations snakemake --keep-incomplete --cores $CORES all_bins # Run the eval examples from the paper (eval_bytes = Fig. 3, eval_int = Fig. 4, eval_full = Fig. 5, waters_multi = Fig. 6)