vezel-dev / graf

A graph-oriented intermediate representation, optimization framework, and machine code generator.
https://docs.vezel.dev/graf
BSD Zero Clause License
17 stars 1 forks source link

Implement fuzz-based testing #5

Open alexrp opened 5 months ago

alexrp commented 5 months ago

https://github.com/vezel-dev/graf/blob/5267fa7a9a78656f5100f09875f7798d0ea9de76/build.zig#L249

Should be based on AFL++. Aro has a good example of applying this to a compiler.

We should run regular fuzzing jobs in CI once this is implemented.

alexrp commented 2 months ago

Zig 0.14.0 will have fuzzing built into the testing infrastructure, so we should see if can avoid the AFL++ dependency.