Hal Canary | a9de760 | 2018-01-19 13:08:23 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include <algorithm> |
| 9 | #include <iostream> |
| 10 | #include <string> |
| 11 | #include <vector> |
| 12 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 13 | #include "tests/Test.h" |
Hal Canary | a9de760 | 2018-01-19 13:08:23 -0500 | [diff] [blame] | 14 | |
| 15 | int main() { |
| 16 | std::vector<std::string> tests; |
Hal Canary | 972eba3 | 2018-07-30 17:07:07 -0400 | [diff] [blame] | 17 | for (const skiatest::Test& test : skiatest::TestRegistry::Range()) { |
Hal Canary | a9de760 | 2018-01-19 13:08:23 -0500 | [diff] [blame] | 18 | if (test.needsGpu) { |
| 19 | tests.push_back(std::string(test.name)); |
| 20 | } |
| 21 | } |
| 22 | std::sort(tests.begin(), tests.end()); |
| 23 | for (const std::string& test : tests) { |
| 24 | std::cout << test << '\n'; |
| 25 | } |
| 26 | } |