diff --git a/test/README.MD b/test/README.MD index 35b40b7d..7e88338e 100644 --- a/test/README.MD +++ b/test/README.MD @@ -84,7 +84,7 @@ If a test case is currently broken, it should be commented and a `TESTS_SKIPPED` // ``` --- -## 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` @@ -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 +```