Skip to content

Commit

Permalink
Update fuzzing test
Browse files Browse the repository at this point in the history
add corpus
  • Loading branch information
XuJiandong committed Aug 15, 2023
1 parent d1e5b0a commit 1485c38
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions examples/lazy-reader-tests/fuzz/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@


# To accelerate the fuzzing process, please download the pre-made corpus file
# from the following link:
# https://gist.github.com/XuJiandong/852905df792d34a3400b98145b0f69e7 Save the
# file named corpus.bin to the corpus/fuzz_target_1/ folder.

all:
cargo fuzz run -j40 fuzz_target_1

cov:
cargo fuzz coverage fuzz_target_1
cargo cov -- show target/x86_64-unknown-linux-gnu/release/fuzz_target_1 \

show:
~/.rustup/toolchains/nightly-2023-07-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-cov \
show target/x86_64-unknown-linux-gnu/release/fuzz_target_1 \
--format=html \
-instr-profile=coverage/fuzz_target_1/coverage.profdata \
--instr-profile=coverage/fuzz_target_1/coverage.profdata \
> coverage.html

install:
Expand Down

0 comments on commit 1485c38

Please sign in to comment.