Start with Marco's test files and prepare a script to run a bunch of tests automatically, possibly creating PNGs to be compared. Part of the testsuite could be included in src/docs in texmf.