rlepigre / ocaml-imagelib

The imagelib library implements image formats such as PNG or PPM
GNU Lesser General Public License v3.0
39 stars 13 forks source link

We need tests in the repository #13

Open rlepigre opened 6 years ago

rlepigre commented 6 years ago

A first step could be to use this test suite, which is what I originally did (and it is used here).

Ravenslofty commented 6 years ago

I'd actually use the AFL synthesized tests from here, which was what I used as a base point.

rlepigre commented 6 years ago

But do you have coverage guarantees with such tests?

Anyway, it may be a good idea to do both!

Ravenslofty commented 6 years ago

Both is certainly an option. Since AFL works by trying to maximise coverage, it's at least a reasonably thorough test.

cfcs commented 6 years ago

:+1: for a set of files (regression testing) and using AFL to produce new ways to trip the parsers (that can then be added to the regression testing set)