GPU-CTS Program
Add new application, called GPU-CTS (GPU Compatibility Test Suite),
which executes skia gms against OpenGL and Vulkan backends. Makes use
of googletest library for consistancy with Android CTS programs.
Add googletest to DEPS
gm_knowledge.h header as a stub for future work on validating gm output.
gm_runner can be re-used in other programs. Talks to Skia and GM with a
simple API.
gpuctx executable wraps gm_runner and googletest together.
Change-Id: Ie7350b22164fa73e44121c39b0f36da4038a700b
Reviewed-on: https://skia-review.googlesource.com/56601
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 33922d7..14ce04a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1634,6 +1634,24 @@
]
}
+ if (!is_win) {
+ test_app("gpucts") {
+ sources = [
+ "dm/DMGpuTestProcs.cpp",
+ "tools/gpucts/gm_knowledge.c",
+ "tools/gpucts/gm_runner.cpp",
+ "tools/gpucts/gpucts.cpp",
+ ]
+ deps = [
+ ":gm",
+ ":gpu_tool_utils",
+ ":skia",
+ ":tests",
+ "//third_party/googletest",
+ ]
+ }
+ }
+
if (skia_enable_gpu) {
test_app("viewer") {
is_shared_library = is_android