-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72f8f61
commit fa171c3
Showing
1,287 changed files
with
262 additions
and
154 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
# Schedfuzz | ||
|
||
|
||
### run fuzz | ||
```sh | ||
# Install component and tools (require rust nightly) | ||
$ rustup component add llvm-tools-preview --toolchain nightly | ||
$ cargo install cargo-binutils | ||
$ cargo install rustfilt | ||
|
||
# Run fuzz | ||
$ cargo +nightly fuzz run -j$(nproc) fuzz_target_1 | ||
# Run fuzz: fuzz_tx_consistency | ||
$ cargo +nightly fuzz run -j$(nproc) fuzz_tx_consistency | ||
|
||
# Generate coverage report | ||
$ cargo +nightly fuzz coverage fuzz_target_1 | ||
$ cargo +nightly cov -- show target/x86_64-unknown-linux-gnu/coverage/x86_64-unknown-linux-gnu/release/fuzz_target_1 --Xdemangler=rustfilt --format=html -instr-profile=fuzz/coverage/fuzz_target_1/coverage.profdata --line-coverage-gt=1 --name=ckb_script > res/report.html | ||
$ cargo +nightly fuzz coverage fuzz_tx_consistency | ||
$ cargo +nightly cov -- show target/x86_64-unknown-linux-gnu/coverage/x86_64-unknown-linux-gnu/release/fuzz_tx_consistency --Xdemangler=rustfilt --format=html -instr-profile=fuzz/coverage/fuzz_tx_consistency/coverage.profdata --line-coverage-gt=1 --name=ckb_script > res/report.html | ||
``` | ||
|
||
### update corpus | ||
After running any fuzzing tests, all corpus should be compacted via: | ||
```sh | ||
$ cargo +nightly fuzz cmin fuzz_tx_consistency | ||
``` | ||
Then commit the corpus changes for future use. |
Oops, something went wrong.