diff options
author | Mike Klein <mtklein@chromium.org> | 2017-03-27 14:16:04 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-27 19:33:31 +0000 |
commit | d63442d87c6d35af4b2771a30a80e67d6aa92b68 (patch) | |
tree | db08cf199b5d9388b0c19971c6a4fd74bc51522d /BUILD.gn | |
parent | 8c67909e0443d0419edbb3743fed57df063850f6 (diff) |
ok: add basic unit test support
Plenty TODO remaining.
This can actually kind of run without a test reporter or GrContext:
$ out/ok test
784 ok, 56 crashed
... lots of stack traces ...
Most tests don't use the reporter unless they're going to fail.
Change-Id: I7333e2c63ade5e671ebf60022d19390f1fc1c93a
Reviewed-on: https://skia-review.googlesource.com/10201
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -969,12 +969,14 @@ if (skia_enable_tools) { deps = [ ":experimental_svg_model", ":flags", - ":gpu_tool_utils", ":skia", ":tool_utils", "//third_party/libpng", "//third_party/zlib", ] + public_deps = [ + ":gpu_tool_utils", # Test.h #includes headers from this target. + ] } import("gn/bench.gni") @@ -1155,11 +1157,13 @@ if (skia_enable_tools) { "tools/ok.cpp", "tools/ok_dsts.cpp", "tools/ok_srcs.cpp", + "tools/ok_test.cpp", "tools/ok_vias.cpp", ] deps = [ ":gm", ":skia", + ":tests", ] } |