Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 178273002: Let DM run unit tests. (Closed)

Created:
6 years, 10 months ago by mtklein_C
Modified:
6 years, 10 months ago
Reviewers:
bsalomon, reed1, mtklein, tfarina
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Let 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -284 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 6 7 8 5 chunks +62 lines, -30 lines 0 comments Download
M dm/DMGpuTask.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M dm/DMGpuTask.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -15 lines 0 comments Download
M dm/DMReporter.h View 1 2 chunks +2 lines, -5 lines 0 comments Download
M dm/DMReporter.cpp View 1 2 3 4 2 chunks +11 lines, -5 lines 0 comments Download
M dm/DMTask.h View 1 chunk +1 line, -1 line 0 comments Download
M dm/DMTask.cpp View 1 2 chunks +7 lines, -4 lines 0 comments Download
M dm/DMTaskRunner.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -4 lines 0 comments Download
M dm/DMTaskRunner.cpp View 1 2 3 4 5 6 7 8 2 chunks +25 lines, -3 lines 0 comments Download
A dm/DMTestTask.h View 1 2 3 4 5 6 7 8 1 chunk +50 lines, -0 lines 0 comments Download
A dm/DMTestTask.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +34 lines, -0 lines 0 comments Download
M gyp/dm.gyp View 3 chunks +7 lines, -1 line 0 comments Download
M gyp/tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -177 lines 0 comments Download
A gyp/tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +181 lines, -0 lines 0 comments Download
M tests/Test.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -5 lines 0 comments Download
M tests/Test.cpp View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -16 lines 0 comments Download
M tests/skia_test.cpp View 1 2 3 4 5 6 7 8 9 10 8 chunks +16 lines, -18 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
mtklein
6 years, 10 months ago (2014-02-24 20:06:47 UTC) #1
bsalomon
I think to really replace tests on the bots with this we'll have to come ...
6 years, 10 months ago (2014-02-24 20:23:14 UTC) #2
mtklein
Does this make the status quo worse for thread-locals? https://codereview.chromium.org/178273002/diff/150001/tests/Test.cpp File tests/Test.cpp (right): https://codereview.chromium.org/178273002/diff/150001/tests/Test.cpp#newcode25 tests/Test.cpp:25: ...
6 years, 10 months ago (2014-02-24 20:36:12 UTC) #3
bsalomon
On 2014/02/24 20:36:12, mtklein wrote: > Does this make the status quo worse for thread-locals? ...
6 years, 10 months ago (2014-02-24 20:38:16 UTC) #4
mtklein
On 2014/02/24 20:38:16, bsalomon wrote: > On 2014/02/24 20:36:12, mtklein wrote: > > Does this ...
6 years, 10 months ago (2014-02-24 20:44:31 UTC) #5
mtklein
>> I was thinking that the potential for exit time crashes would block using DM ...
6 years, 10 months ago (2014-02-24 20:51:17 UTC) #6
bsalomon
On 2014/02/24 20:51:17, mtklein wrote: > >> I was thinking that the potential for exit ...
6 years, 10 months ago (2014-02-24 21:02:39 UTC) #7
mtklein
On 2014/02/24 21:02:39, bsalomon wrote: > On 2014/02/24 20:51:17, mtklein wrote: > > >> I ...
6 years, 10 months ago (2014-02-24 21:05:28 UTC) #8
bsalomon
On 2014/02/24 21:05:28, mtklein wrote: > On 2014/02/24 21:02:39, bsalomon wrote: > > On 2014/02/24 ...
6 years, 10 months ago (2014-02-24 21:09:47 UTC) #9
mtklein
On 2014/02/24 21:09:47, bsalomon wrote: > On 2014/02/24 21:05:28, mtklein wrote: > > On 2014/02/24 ...
6 years, 10 months ago (2014-02-24 23:44:14 UTC) #10
tfarina
https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp File gyp/tests.gyp (right): https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp#newcode12 gyp/tests.gyp:12: 'tests.gypi', why? why have a separate gyp include file? ...
6 years, 10 months ago (2014-02-25 02:47:07 UTC) #11
mtklein
https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp File gyp/tests.gyp (right): https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp#newcode12 gyp/tests.gyp:12: 'tests.gypi', On 2014/02/25 02:47:08, tfarina wrote: > why? why ...
6 years, 10 months ago (2014-02-25 15:05:00 UTC) #12
mtklein
On 2014/02/25 15:05:00, mtklein wrote: > https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp > File gyp/tests.gyp (right): > > https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp#newcode12 > ...
6 years, 10 months ago (2014-02-25 15:05:44 UTC) #13
tfarina
https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp File gyp/tests.gyp (right): https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp#newcode12 gyp/tests.gyp:12: 'tests.gypi', On 2014/02/25 15:05:01, mtklein wrote: > On 2014/02/25 ...
6 years, 10 months ago (2014-02-25 16:29:57 UTC) #14
mtklein
https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp File gyp/tests.gyp (right): https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp#newcode12 gyp/tests.gyp:12: 'tests.gypi', On 2014/02/25 16:29:58, tfarina wrote: > On 2014/02/25 ...
6 years, 10 months ago (2014-02-25 16:47:00 UTC) #15
bsalomon
lgtm
6 years, 10 months ago (2014-02-25 16:49:37 UTC) #16
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 10 months ago (2014-02-25 18:16:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/178273002/220001
6 years, 10 months ago (2014-02-25 18:16:55 UTC) #18
tfarina
On 2014/02/25 16:47:00, mtklein wrote: > https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp > File gyp/tests.gyp (right): > > https://codereview.chromium.org/178273002/diff/220001/gyp/tests.gyp#newcode12 > ...
6 years, 10 months ago (2014-02-25 19:03:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/178273002/220001
6 years, 10 months ago (2014-02-25 19:08:12 UTC) #20
commit-bot: I haz the power
Change committed as 13586
6 years, 10 months ago (2014-02-25 19:32:23 UTC) #21
reed1
A revert of this CL has been created in https://codereview.chromium.org/179403010/ by reed@google.com. The reason for ...
6 years, 10 months ago (2014-02-25 20:01:48 UTC) #22
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 10 months ago (2014-02-26 16:11:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/178273002/260001
6 years, 10 months ago (2014-02-26 16:11:17 UTC) #24
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 16:31:30 UTC) #25
Message was sent while issue was closed.
Change committed as 13592

Powered by Google App Engine
This is Rietveld 408576698