A yeah, you should have a "base case" for each possible configuration of HW/drivers and resolution I guess.
This is only a "simple" setup for let run it on a CI server with a headless X server setup. And a raw test for some image comparison tools.
http://humblesoftware.github.io/js-imagediff/ this one let you output the image differences as a difference over black or use it on command line with a tolerance value (mmm, haven't tested it on cmd line only for equals) which returns: true, false.
While
https://github.com/kaikuehne/mirror outputs a number.
https://github.com/bitlyfied/js-image-similarity it explains a little about "average hashes".
If you see the examples, they are not as hard as the ones on the linked pdf about shadows
.
http://aras-p.info/blog/wp-content/uplo ... -tests.pngI think with this little apps is enough to get at less a
basic local regression test (you compare your outputs with your own hardware and move the correct images to a "correct" dir and output images to a "testagainst" dir so you could run for each image the compare, and write a little script that does the work).
-------------
If you really want to build the database for test across different HW, not only your own.
I was thinking that is necessary to build a little server that can get "hits" from different users at time they run the test... so you will be able to collect different images on different hardware without need to own each possible, and it would use those specific case for compare to others alike, or insert a new entry on it.
If possible I was thinking something on the lines of:
https://github.com/tobami/codespeed/ which is used in
http://speed.pypy.org/ for example, they use a interface, where you only post results and the server handles all the internals... like I know If Im correct is that this server doesn't run the test, it only gets "hits" after some tests with
https://github.com/tobami/codespeed/#saving-data and something that post the result on the lines of
https://github.com/tobami/codespeed/blo ... _result.py so you can run the test anywhere.
Sure, you need to trust the users posting results
(or give them a key to be able to upload results)....
For example, if not images, they can post "the averages" or the whole compressed images on a zip for comparision on the server against a similar case... (also at start if there is a original test case) the local test can connect and download the images that are of the similar spec the user is running on.
Don't know... yeah, it is a whole "little project"
.
----
Searching a little more I just found:
http://www.ogre3d.org/tikiwiki/Visual+U ... +Framework and a link to another image comparision:
http://pdiff.sourceforge.net/ another option in compare images.