the Adib wrote:
I have seen you did some scripts to automate the render-tests.
As we need also some metrics about the other outputs (pdf, ps, ...) I
extended your script.
- integrated the functionality of tester.cpp into the python script
- integrated an pdf render-test
The difficulty of the other output formats is that you need a 3rd
party application to convert your pdf-file into png.
In this case I use ghostscript to do that. Actually I dont know how
much false-positive or false-negative tests there are.
The ghostscript converter runs fine on Linux.
Cool :) Sorry I didn't respond earlier, but I'm kind of swamped with all
sorts of stuff right now.
It looks really nice, and in principle I don't think the dependence on
Ghostscript is a problem as long as it's optional.
However, I do have two problems with it:
1. It doesn't work for me anymore :) The old code passes the basic
examples, but the new code doesn't anymore, while the files are still
2. I may have overlooked it, but I don't see the SetErrorMode calls
anymore. These are quite essential on Windows if you ever want to run
these tests unattended and were mainly what kept me from . Linux might
be smart enough to just return, Windows by default feels the need to pop
up all sorts of dialogs. (In fact the SetErrorMode calls alone aren't
even enough, you need both those and compile Inkscape as a commandline
And a tip: comparing using a special compare tool is very expensive,
it's usually faster to check with a binary compare first (often that's
enough, and if it's not it's only a fraction of the cost of the
Finally, it's great to see someone working on this, keep up the good work!