Skip to content

Commit

Permalink
Readme: Add instructions for running fuzz tests via Zig build system
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Jul 31, 2024
1 parent f51d15b commit de43814
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ If a test case is currently broken, it should be commented and a `TESTS_SKIPPED`
// <something broken here>
```
---
## Running fuzz tests
## Running fuzz tests using AFLplusplus
Fuzz testing requires [AFLplusplus](https://github.com/AFLplusplus/AFLplusplus). Run `zig build fuzz` to build the fuzz target,
then `afl-fuzz -i test/cases -o test/fuzz-output -- ./zig-out/bin/arofuzz`

Expand All @@ -109,3 +109,8 @@ docker run --rm -it -v $PWD:/arocc -w /arocc --mount type=tmpfs,destination=/ram
zig build fuzz # This might take a while
afl-fuzz -i test/cases -o test/fuzz-output -- ./zig-out/bin/arofuzz
```
---
## Running fuzz tests via Zig build system
```sh-session
zig build test --fuzz
```

0 comments on commit de43814

Please sign in to comment.