diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-14 17:07:00 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-16 16:25:59 +0300 |
commit | a1904e802c61e5b5a0cef8cc9de9bf7c2c617552 (patch) | |
tree | e5c71ef187ca93be40a8228b59295358261873bf /render-test/parser.hpp | |
parent | 1165f62df6dd344d83f88a6396cfba153e9271f3 (diff) | |
download | qtlocation-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/parser.hpp')
-rw-r--r-- | render-test/parser.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/render-test/parser.hpp b/render-test/parser.hpp index be98719ab5..3e69968152 100644 --- a/render-test/parser.hpp +++ b/render-test/parser.hpp @@ -11,6 +11,7 @@ struct TestMetadata; struct TestStatistics; +struct TestPaths; using ErrorMessage = std::string; using JSONReply = mbgl::variant<mbgl::JSDocument, ErrorMessage>; @@ -24,7 +25,8 @@ std::vector<std::string> readExpectedEntries(const mbgl::filesystem::path& base) ArgumentsTuple parseArguments(int argc, char** argv); std::vector<std::pair<std::string, std::string>> parseIgnores(); -TestMetadata parseTestMetadata(const mbgl::filesystem::path& path); + +TestMetadata parseTestMetadata(const TestPaths& paths); std::string createResultPage(const TestStatistics&, const std::vector<TestMetadata>&, bool shuffle, uint32_t seed); |