Commit 59328ed8 by Patrick Steinhardt

fuzzers: rename "fuzz" directory to match our style

Our layout uses names like "examples" or "tests" which is why the "fuzz"
directory doesn't really fit in here. Rename the directory to be called
"fuzzers" instead. Furthermore, we rename the fuzzer "fuzz_packfile_raw"
to "packfile_raw_fuzzer", which is also in line with the already
existing fuzzer at google/oss-fuzz.

While at it, rename the "packfile_raw" fuzzer to instead just be called
"packfile" fuzzer.
parent 60e610a2
...@@ -312,7 +312,7 @@ IF(BUILD_FUZZERS) ...@@ -312,7 +312,7 @@ IF(BUILD_FUZZERS)
MESSAGE(FATAL_ERROR "Cannot build the fuzzer targets and the tests together") MESSAGE(FATAL_ERROR "Cannot build the fuzzer targets and the tests together")
ENDIF() ENDIF()
ENDIF() ENDIF()
ADD_SUBDIRECTORY(fuzz) ADD_SUBDIRECTORY(fuzzers)
ENDIF() ENDIF()
IF(CMAKE_VERSION VERSION_GREATER 3) IF(CMAKE_VERSION VERSION_GREATER 3)
......
...@@ -190,9 +190,8 @@ if [ -z "$SKIP_FUZZERS" ]; then ...@@ -190,9 +190,8 @@ if [ -z "$SKIP_FUZZERS" ]; then
echo "## Running fuzzers" echo "## Running fuzzers"
echo "##############################################################################" echo "##############################################################################"
for fuzzer in $(find ./fuzz/ -type f -executable); do for fuzzer in fuzzers/*_fuzzer; do
fuzzer_name=$(basename "${fuzzer}") "${fuzzer}" "../fuzzers/corpora/$(basename "${fuzzer%_fuzzer}")" || die $?
"${fuzzer}" "../fuzz/corpora/${fuzzer_name}" || die $?
done done
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment