summaryrefslogtreecommitdiff
path: root/render-test/runner.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-14 17:07:00 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-16 16:25:59 +0300
commita1904e802c61e5b5a0cef8cc9de9bf7c2c617552 (patch)
treee5c71ef187ca93be40a8228b59295358261873bf /render-test/runner.hpp
parent1165f62df6dd344d83f88a6396cfba153e9271f3 (diff)
downloadqtlocation-mapboxgl-a1904e802c61e5b5a0cef8cc9de9bf7c2c617552.tar.gz
[test-runner] Introduce mapbox-gl-native test expectations
The `mapbox-gl-native`-specific render tests expected results will be stored at the `render-test/expected/` subfolder. Test runner will automatically put new expected results there if invoked with `UPDATE=true`.
Diffstat (limited to 'render-test/runner.hpp')
-rw-r--r--render-test/runner.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/render-test/runner.hpp b/render-test/runner.hpp
index cbc0f42546..920a9ee372 100644
--- a/render-test/runner.hpp
+++ b/render-test/runner.hpp
@@ -14,6 +14,11 @@ public:
bool run(TestMetadata&);
void reset();
+ /// Returns path of the render tests root directory.
+ static const std::string& getBasePath();
+ /// Returns path of mapbox-gl-native expectations directory.
+ static const std::string& getPlatformExpectationsPath();
+
private:
bool runOperations(const std::string& key, TestMetadata&);
bool checkImage(mbgl::PremultipliedImage&& image, TestMetadata&);