[render-test] Add configurable rootPath, ignorePath via CLI arguments (#15832)
* [render-test] Add configurable path via CLI arguments * [render-test] Change ignore path config
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <mbgl/map/map.hpp>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
class TestRunnerMapObserver;
|
||||
struct TestMetadata;
|
||||
@@ -11,13 +12,10 @@ struct TestMetadata;
|
||||
class TestRunner {
|
||||
public:
|
||||
TestRunner() = default;
|
||||
|
||||
explicit TestRunner(const std::string& testRootPath);
|
||||
bool run(TestMetadata&);
|
||||
void reset();
|
||||
|
||||
/// Returns path of the render tests root directory.
|
||||
static const std::string& getBasePath();
|
||||
|
||||
private:
|
||||
bool runOperations(const std::string& key, TestMetadata&);
|
||||
bool checkQueryTestResults(mbgl::PremultipliedImage&& actualImage,
|
||||
@@ -34,4 +32,5 @@ private:
|
||||
mbgl::Map map;
|
||||
};
|
||||
std::unordered_map<std::string, std::unique_ptr<Impl>> maps;
|
||||
};
|
||||
std::string testRootPath{TEST_RUNNER_ROOT_PATH};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user