santa icon indicating copy to clipboard operation
santa copied to clipboard

Add BUILD rules for fuzz tests

Open russellhancox opened this issue 2 years ago • 1 comments

We have fuzz tests in the repo but they're not buildable by the existing BUILD rules (they were originally added with cmake rules but those got out of date quickly).

https://github.com/bazelbuild/rules_fuzzing is a good start though it doesn't support macOS out of the box.

russellhancox avatar May 19 '22 20:05 russellhancox

Minor update on this.

After including the rules_fuzzing, the main blocker, is that libfuzzer isn't packaged with XCode. We can work around this by brew installing llvm in the GitHub VMs.

Past that we need to update the fuzzing tests source, create BUILD files etc.

pmarkowsky avatar Aug 03 '22 14:08 pmarkowsky

@kallsyms figured out that we can just install libfuzzer in the local xcode and it works. #976 does this and uses rules_fuzzing.

pmarkowsky avatar Dec 21 '22 21:12 pmarkowsky