|
22 | 22 | #include <QTime>
|
23 | 23 | #include <QCryptographicHash>
|
24 | 24 | #include <QByteArray>
|
| 25 | +#include <QDebug> |
25 | 26 |
|
26 | 27 | QgsRenderChecker::QgsRenderChecker( ) :
|
27 | 28 | mReport( "" ),
|
@@ -205,6 +206,18 @@ bool QgsRenderChecker::compareImages( QString theTestName,
|
205 | 206 | "\"></td><td><img src=\"file://" +
|
206 | 207 | myResultDiffImage +
|
207 | 208 | "\"></td>\n</tr>\n</table>";
|
| 209 | + // |
| 210 | + // To get the images into CDash |
| 211 | + // |
| 212 | + QString myDashMessage = "<DartMeasurementFile name=\"Rendered Image\"" |
| 213 | + " type=\"image/png\">" + mRenderedImageFile + |
| 214 | + "</DartMeasurementFile>" |
| 215 | + "<DartMeasurementFile name=\"Expected Image\" type=\"image/png\">" + |
| 216 | + mExpectedImageFile + "</DartMeasurementFile>" |
| 217 | + "<DartMeasurementFile name=\"Difference Image\" type=\"image/png\">" + |
| 218 | + myResultDiffImage + "</DartMeasurementFile>"; |
| 219 | + qDebug( ) << myDashMessage; |
| 220 | + |
208 | 221 | //
|
209 | 222 | // Put the same info to debug too
|
210 | 223 | //
|
@@ -261,6 +274,14 @@ bool QgsRenderChecker::compareImages( QString theTestName,
|
261 | 274 | QString::number( theMismatchCount ) + ")";
|
262 | 275 | mReport += "</td></tr>";
|
263 | 276 |
|
| 277 | + // |
| 278 | + // And send it to CDash |
| 279 | + // |
| 280 | + std::cout << "<DartMeasurement name=\"Mismatch Count " |
| 281 | + << "\" type=\"numeric/integer\">"; |
| 282 | + std::cout << mMismatchCount; |
| 283 | + std::cout << "</DartMeasurement>" << std::endl; |
| 284 | + |
264 | 285 | bool myAnomalyMatchFlag = isKnownAnomaly( myDifferenceImage );
|
265 | 286 |
|
266 | 287 | if ( myAnomalyMatchFlag )
|
|
0 commit comments