[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:
zmiao
2019-10-23 12:04:23 +03:00
committed by GitHub
parent 99feb9bb30
commit 2385f4cd86
7 changed files with 168 additions and 110 deletions

View File

@@ -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};
};