Show progress on device when Android render test is running (#4119)

This commit is contained in:
Bart Louwers
2026-02-23 23:01:38 +01:00
committed by GitHub
parent 4db40f41a9
commit 4fa52298e5
8 changed files with 96 additions and 15 deletions

View File

@@ -18,10 +18,10 @@ bool TestRunner::startTest(const std::string& manifestBasePath) {
}
argv.push_back(nullptr);
int finishedTestCount = 0;
std::function<void()> testStatus = [&]() {
std::function<void(mbgl::TestStatus)> testStatus = [&](mbgl::TestStatus status) {
mbgl::Log::Info(mbgl::Event::General,
"Current finished tests number is '" + std::to_string(++finishedTestCount) + "' ");
"Current finished tests number is '" + std::to_string(status.completed) + "/" +
std::to_string(status.total) + "' ");
};
mbgl::Log::Info(mbgl::Event::General, "Start running RenderTestRunner with manifest: '" + manifest + "' ");