-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testing: implement panicky testing.B struct #17
Conversation
Thank you. I will have to test this before merging. |
Hm, it is still not complete. Need to add these methods: https://pkg.go.dev/testing#TB, and then also add the TB interface too.
|
It might be a problem to add |
I don't think so. I mean, we're not actually implementing that interface, we just want to tick as many boxes in the The |
Sg. Let me know when it is ready to be tested (and whether you have also tested it) |
Yep, this is ready to be tested (but I have not yet done so) |
I don't really see how this PR can break anything, but if it gets merged, I can test it out pretty quickly. Alternatively, and probably better: if you put it in a branch, my oss-script can use it via |
I will test this PR this week. |
So, this For my own purposes, I ended up implementing an alternative: https://github.com/holiman/gofuzz-shim. It is corpus-incompatible with go-118-fuzz-build, since I realized that I wanted to totally change how the input from libfuzzer is used. That part is implemented here: https://github.com/holiman/gofuzz-shim/blob/main/input/reader.go#L102 Also, I did away with a lot of the code in the shimmer, making it so that the caller simply specifies what files to instrument. This is the |
A bug in the infra breaks if a fuzzer and benchmark is in one folder See AdamKorcz/go-118-fuzz-build#17 Split it out
* fuzz: fix build A bug in the infra breaks if a fuzzer and benchmark is in one folder See AdamKorcz/go-118-fuzz-build#17 Split it out * oops
* fuzz: fix build A bug in the infra breaks if a fuzzer and benchmark is in one folder See AdamKorcz/go-118-fuzz-build#17 Split it out * oops
* fuzz: fix build A bug in the infra breaks if a fuzzer and benchmark is in one folder See AdamKorcz/go-118-fuzz-build#17 Split it out * oops
Fixes #16
Caveat: I haven't tested if it works, not sure what's the easiest way to do that (I suppose that there must exist easier ways than modding my whole oss-fuzz setup to use my fork).
I took nearly all public functions of
testing.B
, exceptfunc (b *B) RunParallel(body func(*PB))
, which would pull in yet more structs.I made the
Run
panic, otherwise don't see any need to make it panic. Someone might invokeReportAllocs
ininit
for all I know.