Previously, I tried to use ImageDiff on OS X without trying to go through the sim bootstrap. However, ImageDiff relies on some WTF functionality and I don't want to introduce a new OS X build dependency when testing iOS. I've verified that running ImageDiff in the sim bootstrap is negligible, so we can create a custom ImageDiffer and use that for the iso-simulator platform. With this change, the only OS X tool that you'll need to build is the LayoutTestRelay: there are no WebKit dependencies there and it builds automatically when running layout tests.
Created attachment 236050 [details] Patch
Created attachment 236054 [details] Patch
Sorry - uploaded a different patch to the same bug - reinstated original.
What does it mean to "run in the bootstrap"? Do you mean run in the simulated device?
Sort of, although not in a real SimDevice. It’s just wrapped in `xcrun -sdk iphonesimulator sim`. It has the bare minimum bootstrap to run a simulator binary but doesn’t have access to to other simulator services like the framebuffer, etc. It works in this case because it’s not a full UIKit application.
(In reply to comment #4) > What does it mean to "run in the bootstrap"? Do you mean run in the simulated device? It means that ImageDiff runs in the simulator environment, but not as an app in SpringBoard. In other words, it uses simulator frameworks instead of Mac OS X frameworks to run on the command line.
Comment on attachment 236050 [details] Patch r=me
Committed r172118: <http://trac.webkit.org/changeset/172118>