From a9de760a217cf48c974d6c51b4ba88f08c269bbe Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Fri, 19 Jan 2018 13:08:23 -0500 Subject: SkQP: replace blacklist with: DoNotExecuteInExperimentalMode and NoScoreInCompatibilityTestMode Also clean up some things, fix docs, whitelist. Change-Id: I2818d973978ffe1b8ce0cc9c69f8d91ab4a0ef22 Reviewed-on: https://skia-review.googlesource.com/91805 Reviewed-by: Hal Canary Commit-Queue: Hal Canary --- tools/list_gpu_unit_tests.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tools/list_gpu_unit_tests.cpp (limited to 'tools/list_gpu_unit_tests.cpp') diff --git a/tools/list_gpu_unit_tests.cpp b/tools/list_gpu_unit_tests.cpp new file mode 100644 index 0000000000..18127b6950 --- /dev/null +++ b/tools/list_gpu_unit_tests.cpp @@ -0,0 +1,27 @@ +/* + * Copyright 2018 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include +#include +#include +#include + +#include "Test.h" + +int main() { + std::vector tests; + for (const skiatest::TestRegistry* r = skiatest::TestRegistry::Head(); r; r = r->next()) { + const skiatest::Test& test = r->factory(); + if (test.needsGpu) { + tests.push_back(std::string(test.name)); + } + } + std::sort(tests.begin(), tests.end()); + for (const std::string& test : tests) { + std::cout << test << '\n'; + } +} -- cgit v1.2.3