diff options
author | zmiao <miao.zhao@mapbox.com> | 2019-10-23 12:04:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-23 12:04:23 +0300 |
commit | 2385f4cd86261cdfc6253de5fed217bfc06fa6c8 (patch) | |
tree | 8d5e98b83efce930ff8b9454d75c3eedc8513a22 /render-test/runner.hpp | |
parent | 99feb9bb306ddf06c228f0b6bbfb88abead6b33a (diff) | |
download | qtlocation-mapboxgl-2385f4cd86261cdfc6253de5fed217bfc06fa6c8.tar.gz |
[render-test] Add configurable rootPath, ignorePath via CLI arguments (#15832)
* [render-test] Add configurable path via CLI arguments
* [render-test] Change ignore path config
Diffstat (limited to 'render-test/runner.hpp')
-rw-r--r-- | render-test/runner.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/render-test/runner.hpp b/render-test/runner.hpp index 6aba2d2391..3efd17bf1e 100644 --- a/render-test/runner.hpp +++ b/render-test/runner.hpp @@ -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; -};
\ No newline at end of file + std::string testRootPath{TEST_RUNNER_ROOT_PATH}; +}; |