Is it possible to support Catch2 test framework? #2219
-
Working on a project with a bunch of tests built with Catch2 framework, I ran on a link issue which really seems to come from an incompatibility between AFL++ and Catch2. At least, Catch::Matchers::StdString::StartsWithMatcher produces a large bunch of error messages at link time. Of course, I may work around temporarily this issue not building the tests, but that's not really practical as I expected to benchmark several fuzzing tools using the same test case. Any help would be thankfully welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I have no clue what Catch2 is. but instrumenting tests does not make sense, or are you trying to create harness functions that are based on Catch2 (whatever that is)? |
Beta Was this translation helpful? Give feedback.
If you just instrument tests then you do not need to fuzz with coverage. I understand that instrumenting the whole program will slow the fuzzing down. you could create a CFG and just instrument the functions a test is calling. If that is not an option, sure base your tests as fuzzing harnesses, but you will have to instrument the whole base code (you can skip or just instrument specific extra libraries though)