[test runner] Command line option for the tests expectations path

-e[expectationsPath], --expectationsPath=[expectationsPath]

Test expectations path.
This commit is contained in:
Mikhail Pozdnyakov
2019-10-17 20:13:45 +03:00
parent eb3c203d4e
commit b03982730e
6 changed files with 40 additions and 30 deletions

View File

@@ -39,15 +39,6 @@ const std::string& TestRunner::getBasePath() {
return result;
}
// static
const std::vector<std::string>& TestRunner::getPlatformExpectationsPaths() {
// TODO: Populate from command line.
const static std::vector<std::string> result {
std::string(TEST_RUNNER_ROOT_PATH).append("/render-test/expected")
};
return result;
}
std::string simpleDiff(const Value& result, const Value& expected) {
std::vector<std::string> resultTokens{tokenize(toJSON(result, 2, false))};
std::vector<std::string> expectedTokens{tokenize(toJSON(expected, 2, false))};