Skip to content

Commit

Permalink
add corpus and update vm version
Browse files Browse the repository at this point in the history
  • Loading branch information
gpBlockchain committed Jul 18, 2024
1 parent 72f8f61 commit fa171c3
Show file tree
Hide file tree
Showing 1,287 changed files with 262 additions and 154 deletions.
92 changes: 46 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 13 additions & 4 deletions README.md
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.
Loading

0 comments on commit fa171c3

Please sign in to comment.