mirror of
https://github.com/rustls/rustls.git
synced 2026-10-28 17:56:30 +08:00
This commit adds a README to the `fuzz` subdirectory of the project root. The README has a few small pointers to help a developer get started running the fuzz tests locally, and a link to the upstream cargo-fuzz docs for more information.
742 B
742 B
Fuzz Testing
Rustls supports fuzz testing using cargo-fuzz. Fuzz tests are automatically run during continuous integration using oss-fuzz. You may also run fuzz tests locally. See the cargo-fuzz setup instructions for requirements.
# List available fuzzing targets.
$ cargo fuzz list
client
deframer
fragment
message
persist
servert
# Run the message fuzz target for a fixed period of time (expressed in seconds).
$ cargo fuzz run message -- -max_total_time=120
# Clean up generated corpus files
git clean --interactive -- ./corpus