mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Upload test images to cdash
This commit is contained in:
parent
ba003e6ee3
commit
aab9976b55
@ -22,6 +22,7 @@
|
|||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QCryptographicHash>
|
#include <QCryptographicHash>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
QgsRenderChecker::QgsRenderChecker( ) :
|
QgsRenderChecker::QgsRenderChecker( ) :
|
||||||
mReport( "" ),
|
mReport( "" ),
|
||||||
@ -205,6 +206,18 @@ bool QgsRenderChecker::compareImages( QString theTestName,
|
|||||||
"\"></td><td><img src=\"file://" +
|
"\"></td><td><img src=\"file://" +
|
||||||
myResultDiffImage +
|
myResultDiffImage +
|
||||||
"\"></td>\n</tr>\n</table>";
|
"\"></td>\n</tr>\n</table>";
|
||||||
|
//
|
||||||
|
// To get the images into CDash
|
||||||
|
//
|
||||||
|
QString myDashMessage = "<DartMeasurementFile name=\"Rendered Image\""
|
||||||
|
" type=\"image/png\">" + mRenderedImageFile +
|
||||||
|
"</DartMeasurementFile>"
|
||||||
|
"<DartMeasurementFile name=\"Expected Image\" type=\"image/png\">" +
|
||||||
|
mExpectedImageFile + "</DartMeasurementFile>"
|
||||||
|
"<DartMeasurementFile name=\"Difference Image\" type=\"image/png\">" +
|
||||||
|
myResultDiffImage + "</DartMeasurementFile>";
|
||||||
|
qDebug( ) << myDashMessage;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Put the same info to debug too
|
// Put the same info to debug too
|
||||||
//
|
//
|
||||||
@ -261,6 +274,14 @@ bool QgsRenderChecker::compareImages( QString theTestName,
|
|||||||
QString::number( theMismatchCount ) + ")";
|
QString::number( theMismatchCount ) + ")";
|
||||||
mReport += "</td></tr>";
|
mReport += "</td></tr>";
|
||||||
|
|
||||||
|
//
|
||||||
|
// And send it to CDash
|
||||||
|
//
|
||||||
|
std::cout << "<DartMeasurement name=\"Mismatch Count "
|
||||||
|
<< "\" type=\"numeric/integer\">";
|
||||||
|
std::cout << mMismatchCount;
|
||||||
|
std::cout << "</DartMeasurement>" << std::endl;
|
||||||
|
|
||||||
bool myAnomalyMatchFlag = isKnownAnomaly( myDifferenceImage );
|
bool myAnomalyMatchFlag = isKnownAnomaly( myDifferenceImage );
|
||||||
|
|
||||||
if ( myAnomalyMatchFlag )
|
if ( myAnomalyMatchFlag )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user