Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Add command for running a single input
  • Loading branch information
louismerlin authored Oct 25, 2022
commit 1d10c565c62cd3ee24446c87d0822e8896ed89fb
8 changes: 7 additions & 1 deletion xcm/xcm-simulator/fuzzer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ This project will fuzz-test the XCM simulator. It can catch reachable panics, ti
cargo hfuzz run xcm-fuzzer
```

## Run a single input

```
cargo hfuzz run-debug xcm-fuzzer hfuzz_workspace/xcm-fuzzer/fuzzer_input_file
```

## Generate coverage

In this directory, run these four commands:
Expand All @@ -19,4 +25,4 @@ zip -0 ccov.zip `find ../../../target/ \( -name "*.gc*" -o -name "test-*.gc*" \)
grcov ccov.zip -s ../../../ -t html --llvm --branch --ignore-not-existing -o ./coverage
```

The code coverage will be in `./coverage/index.html`.
The code coverage will be in `./coverage/index.html`.