DescriptionLet DM run unit tests.
- refactor GYPs and a few flags
- make GPU tests grab a thread-local GrContextFactory when needed as we do in DM for GMs
- add a few more UI features to make DM more like tests
I believe this makes the program 'tests' obsolete.
It should be somewhat faster to run the two sets together than running the old binaries serially:
- serial: tests 20s (3m18s CPU), dm 21s (3m01s CPU)
- together: 27s (6m21s CPU)
Next up is to incorporate benches. I'm only planning there on a single-pass sanity check, so that won't obsolete the program 'bench' just yet.
Tested: out/Debug/tests && out/Debug/dm && echo ok
BUG=skia:
Committed: http://code.google.com/p/skia/source/detail?r=13586
Committed: http://code.google.com/p/skia/source/detail?r=13592
Patch Set 1 #Patch Set 2 : tweaks #Patch Set 3 : tweak #Patch Set 4 : give tests a thread-local GrContextFactory like GMs #Patch Set 5 : add -q #Patch Set 6 : -z too #Patch Set 7 : add --leaks #
Total comments: 2
Patch Set 8 : single flag for resources #Patch Set 9 : bow to inevitable #Patch Set 10 : only call setGrContextFactory for GPU tests #
Total comments: 4
Patch Set 11 : fix nogpu tests #Patch Set 12 : rebase #
Messages
Total messages: 25 (0 generated)
|