Instead of a simple fail/don't-fail boolean switch, add fail-on, an enum which sets the sensitivity of loaders to errors. There's a new sensitivity level which tries to detect truncated images, but ignores other types of error.
libvips test suite
This is in two parts: a few simple bash scripts in this directory are run on "make check", and a fancier Python test suite that's run by Travis on each commit.