diff options
author | Hal Canary <halcanary@google.com> | 2018-08-03 13:29:39 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-08-06 19:17:24 +0000 |
commit | 73ec9a09f36ed1e0921c05924b63dcace069f489 (patch) | |
tree | 84c8edd2343d9a39aaa38eccd48908ea2efe65c1 /BUILD.gn | |
parent | 641bf8745db12b4ab16a4fe1ce43aeb3a0ba1546 (diff) | |
download | skqp-73ec9a09f36ed1e0921c05924b63dcace069f489.tar.gz |
Test: New GMs should be nicely named
Motivation:
An issue came up a while back with SkQP where some the JUnit testing
framework dislikes test names that aren't valid Java identifiers. I am
currently replacing invalid characters with underscores before giving
them to JUnit, but that leads to some confusion when trying to grep for
the name of a failing test.
I propose that going forward, all *new* Skia unit tests and GM names be
in the form [A-Za-z][A-Za-z0-9_]* to prevent this sort of confusion. We
won't change 63 existing "bad" tests names.
This Cl encorces that rule with an assertion in DM.
Change-Id: Icedce023cd3127d499fbcdcaea485f1ec9e9196b
Reviewed-on: https://skia-review.googlesource.com/145365
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1601,6 +1601,7 @@ if (skia_enable_tools) { "dm/DMGpuTestProcs.cpp", "dm/DMJsonWriter.cpp", "dm/DMSrcSink.cpp", + "dm/ValidateGMNames.cpp", ] include_dirs = [ "tests" ] deps = [ |