diff options
author | aavit <qt-info@nokia.com> | 2010-12-14 14:24:20 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-12-14 14:24:20 (GMT) |
commit | 3c20e7a08aadb08955603d004054a3adacff180f (patch) | |
tree | 6255740efc8f49b8e4a3435d9a399a8a2bb154b4 /tests/auto/lancelot | |
parent | d21eee4fb39ee8378bb87187cec5e46275dc31ed (diff) | |
download | Qt-3c20e7a08aadb08955603d004054a3adacff180f.zip Qt-3c20e7a08aadb08955603d004054a3adacff180f.tar.gz Qt-3c20e7a08aadb08955603d004054a3adacff180f.tar.bz2 |
Make the lancelot/baseline test system generically usable
To facilitate usage outside of tst_lancelot:
- Added new QBaseLineTest simple API
- Added "tst_baselineexample" autotest to show usage
- Improved reporting
- Results from all testfunctions collected in same report
Diffstat (limited to 'tests/auto/lancelot')
-rw-r--r-- | tests/auto/lancelot/lancelot.pro | 5 | ||||
-rw-r--r-- | tests/auto/lancelot/tst_lancelot.cpp | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/lancelot/lancelot.pro b/tests/auto/lancelot/lancelot.pro index 4535b83..6d6edf8 100644 --- a/tests/auto/lancelot/lancelot.pro +++ b/tests/auto/lancelot/lancelot.pro @@ -7,9 +7,6 @@ SOURCES += tst_lancelot.cpp \ HEADERS += $$QT_SOURCE_TREE/tests/arthur/common/paintcommands.h RESOURCES += $$QT_SOURCE_TREE/tests/arthur/common/images.qrc -include($$QT_SOURCE_TREE/tests/arthur/common/baselineprotocol.pri) -win32|symbian*:MKSPEC=$$replace(QMAKESPEC, \\\\, /) -else:MKSPEC=$$QMAKESPEC -DEFINES += QMAKESPEC=\\\"$$MKSPEC\\\" +include($$QT_SOURCE_TREE/tests/arthur/common/qbaselinetest.pri) !symbian:!wince*:DEFINES += SRCDIR=\\\"$$PWD\\\" diff --git a/tests/auto/lancelot/tst_lancelot.cpp b/tests/auto/lancelot/tst_lancelot.cpp index d1b093f..4bde927 100644 --- a/tests/auto/lancelot/tst_lancelot.cpp +++ b/tests/auto/lancelot/tst_lancelot.cpp @@ -252,7 +252,7 @@ void tst_Lancelot::runTestSuite(GraphicsEngine engine, QImage::Format format) if (dryRunMode) qDebug() << "Dryrun mode, ignoring detected mismatch." << serverMsg; else - QFAIL("Rendered image differs from baseline.\n" + serverMsg); + QFAIL("Rendered image differs from baseline. Report:\n " + serverMsg); } } |