Add option to override comparison fuzziness level to lancelot tests
Sometimes useful to force e.g. an exact match. Change-Id: Ic417a518d91b579c23dea925f747955f11d4143b Reviewed-by: Andy Nichols <andy.nichols@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>bb10
parent
c23e3f4822
commit
b1e0a71997
|
|
@ -72,6 +72,16 @@ void handleCmdLineArgs(int *argcp, char ***argvp)
|
|||
|
||||
if (arg == "-simfail") {
|
||||
simfail = true;
|
||||
} else if (arg == "-fuzzlevel") {
|
||||
i++;
|
||||
bool ok = false;
|
||||
(void)nextArg.toInt(&ok);
|
||||
if (!ok) {
|
||||
qWarning() << "-fuzzlevel requires integer parameter";
|
||||
showHelp = true;
|
||||
break;
|
||||
}
|
||||
customInfo.insert("FuzzLevel", QString::fromLatin1(nextArg));
|
||||
} else if (arg == "-auto") {
|
||||
customAutoModeSet = true;
|
||||
customInfo.setAdHocRun(false);
|
||||
|
|
@ -111,6 +121,7 @@ void handleCmdLineArgs(int *argcp, char ***argvp)
|
|||
QTextStream out(stdout);
|
||||
out << "\n Baseline testing (lancelot) options:\n";
|
||||
out << " -simfail : Force an image comparison mismatch. For testing purposes.\n";
|
||||
out << " -fuzzlevel <int> : Specify the percentage of fuzziness in comparison. Overrides server default. 0 means exact match.\n";
|
||||
out << " -auto : Inform server that this run is done by a daemon, CI system or similar.\n";
|
||||
out << " -adhoc (default) : The inverse of -auto; this run is done by human, e.g. for testing.\n";
|
||||
out << " -setbaselines : Store ALL rendered images as new baselines. Forces replacement of previous baselines.\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue