list_gpu_unit_tests.cpp 598 B

1234567891011121314151617181920212223242526
  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. #include <algorithm>
  8. #include <iostream>
  9. #include <string>
  10. #include <vector>
  11. #include "tests/Test.h"
  12. int main() {
  13. std::vector<std::string> tests;
  14. for (const skiatest::Test& test : skiatest::TestRegistry::Range()) {
  15. if (test.needsGpu) {
  16. tests.push_back(std::string(test.name));
  17. }
  18. }
  19. std::sort(tests.begin(), tests.end());
  20. for (const std::string& test : tests) {
  21. std::cout << test << '\n';
  22. }
  23. }