mode to create standalone test output automatically [WIP]#209
mode to create standalone test output automatically [WIP]#209
Conversation
|
It sort of works now. Given: and the config file doing: outputs: and produces the harness: which compiles. |
|
Things this still needs:
Right now you can just grap what's between /* START CODE: */ and // STANDALONE UNIT TEST CODE but it's ugly. Also the only wrappers provided are for int, unsigned int, and char*, but that's easy to add to, except for things like pointers and structs (right now, you'll generate that won't compile, so you'll know it doesn't work, if not in the nicest way). |
|
Ok, now you can just scan through test execution and grab everything between |
|
The approach taken here is quick'n'dirty: it would be ideal to have a tool that just took the harness code and the input file and somehow made a standalone test! This solution is usable for some people, but is not long-term the right thing. Getting it working could help with understanding how to do it The Right Way, though. |
|
@agroce I fixed up the merge failure I think, can we merge this? |
|
@pgoodman whoa -- does this work? The students did a big, complex implementation that seems to sort of work, this is just mostly a hacky kluge I'd sort of forgotten about Did you try it out? |
|
Did not try it. Should we prioritize the student work? |
|
The student work was MUCH more powerful and thorough, handled a lot of things. The reason I haven't integrated it is that it is also big and complex, and needed a decent code review/survey of how it changes build and installation, etc., and I never found the time, since it is thorough (uses antlr parsing to do stuff). If we think standalone generation is important, it's probably a large (if heavyweight) step in that direction. There is definitely something attractive in the workflow they showed, where you write a deepstate harness, and run AFL on it, and then process the AFL queue directory and basically have AFL writing a bunch of plain old GoogleTest unit tests for you. |
|
Peter Goodman seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
See #208