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 13 #include "Test.h" 14 15 int main() { 16 std::vector<std::string> tests; 17 for (const skiatest::TestRegistry* r = skiatest::TestRegistry::Head(); r; r = r->next()) { 18 const skiatest::Test& test = r->factory(); 19 if (test.needsGpu) { 20 tests.push_back(std::string(test.name)); 21 } 22 } 23 std::sort(tests.begin(), tests.end()); 24 for (const std::string& test : tests) { 25 std::cout << test << '\n'; 26 } 27 } 28