Crates.io | cargo-bolero |
lib.rs | cargo-bolero |
version | 0.11.2 |
source | src |
created_at | 2019-09-09 21:31:08.907973 |
updated_at | 2024-06-11 16:08:04.949172 |
description | cargo command for running bolero fuzz tests |
homepage | https://github.com/camshaft/bolero |
repository | https://github.com/camshaft/bolero |
max_upload_size | |
id | 163666 |
size | 77,511 |
cargo-bolero
can be installed globally with cargo:
$ cargo install -f cargo-bolero
cargo-bolero
needs a couple of libraries installed to compile. If these libraries aren't
available the requirement can be relaxed by executing cargo install cargo-bolero --no-default-features -f
$ sudo apt install binutils-dev libunwind-dev
Run an engine for a target
USAGE:
cargo bolero test [FLAGS] [OPTIONS] <test>
FLAGS:
--all-features Activate all available features
-h, --help Prints help information
--no-default-features Do not activate the `default` feature
--release Build artifacts in release mode, with optimizations
-V, --version Prints version information
OPTIONS:
--features <features> Space-separated list of features to activate
-e, --engine <engine> Run the test with a specific engine [default: libfuzzer]
-j, --jobs <jobs> Number of parallel jobs
--manifest-path <manifest-path> Path to Cargo.toml
-l, --max-input-length <max-input-length> Limit the size of inputs to a specific length
-p, --package <package> Package to run tests for
-r, --runs <runs> Run the engine for a specified number of runs
-s, --sanitizer <sanitizer>... Build with the sanitizer enabled
-S, --seed <seed> Run the engine with an initial seed
--target <target> Build for the target triple
--target_dir <target-dir> Directory for all generated artifacts
-T, --time <time> Run the engine for a specified number of seconds
--toolchain <toolchain> Use a rustup toolchain to execute cargo build
ARGS:
<test> Name of the test target
Reduce the corpus of a test target with an engine
USAGE:
cargo bolero reduce [FLAGS] [OPTIONS] <test>
FLAGS:
--all-features Activate all available features
-h, --help Prints help information
--no-default-features Do not activate the `default` feature
--release Build artifacts in release mode, with optimizations
-V, --version Prints version information
OPTIONS:
--features <features> Space-separated list of features to activate
-e, --engine <engine> Run the test with a specific engine [default: libfuzzer]
--manifest-path <manifest-path> Path to Cargo.toml
-p, --package <package> Package to run tests for
-s, --sanitizer <sanitizer>... Build with the sanitizer enabled
--target <target> Build for the target triple
--target_dir <target-dir> Directory for all generated artifacts
--toolchain <toolchain> Use a rustup toolchain to execute cargo build
ARGS:
<test> Name of the test target