Skip to content
Snippets Groups Projects
Commit 5ac26e09 authored by Zach Riggle's avatar Zach Riggle
Browse files

Enable invocation of 32-bit fuzzers

Previously we would only invoke 64-bit fuzzers.  We still prefer 64-bit, but
will fall back to 32-bit if that's the only thing that exists (e.g. codecs).

Change-Id: I32e7f6c3b157eade17e7ce5ad77054b54fda4bba
parent bbd87dc5
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
# Abort on any error
# Global configuration
FUZZER_BASE="/data/nativetest64/fuzzers"
FUZZER_BASES=( "/data/nativetest64/fuzzers" "/data/nativetest/fuzzers" )
WORK_BASE="/data/local/tmp/fuzz"
LAST_FUZZ="$WORK_BASE/last_session"
......@@ -150,11 +150,11 @@ if [ -e $1 ]; then
FUZZER="$(basename $FUZZER_BIN)"
else
FUZZER="${1%_fuzzer}"
FUZZER_BIN="${FUZZER_BASE}/${OPT_ENGINE}/${FUZZER}_fuzzer/${FUZZER}_fuzzer"
if [ ! -e "$FUZZER_BIN" ]; then
die "Invalid fuzzer name ${FUZZER}: ($FUZZER_BIN does not exist)"
fi
for FUZZER_BASE in "${FUZZER_BASES[@]}"; do
FUZZER_BIN="${FUZZER_BASE}/${OPT_ENGINE}/${FUZZER}_fuzzer/${FUZZER}_fuzzer"
[ -e "$FUZZER_BIN" ] && break
done
fi
shift
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment