OSDN Git Service

port gui and network benchmarks to CMake build system
authorIvailo Monev <xakepa10@gmail.com>
Mon, 1 Feb 2016 18:12:04 +0000 (20:12 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 1 Feb 2016 18:12:04 +0000 (20:12 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
122 files changed:
tests/benchmarks/core/io/qdiriterator/main.cpp
tests/benchmarks/core/io/qfile/main.cpp
tests/benchmarks/core/io/qiodevice/main.cpp
tests/benchmarks/core/tools/containers-sequential/main.cpp
tests/benchmarks/core/tools/qstring/main.cpp
tests/benchmarks/declarative/compilation/tst_compilation.cpp
tests/benchmarks/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
tests/benchmarks/gui/animation/qanimation/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/animation/qanimation/dummyanimation.h
tests/benchmarks/gui/animation/qanimation/main.cpp
tests/benchmarks/gui/animation/qanimation/qanimation.pro [deleted file]
tests/benchmarks/gui/animation/qanimation/rectanimation.cpp
tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt.broken [new file with mode: 0644]
tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/GraphicsViewBenchmark.pro [deleted file]
tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/main.cpp
tests/benchmarks/gui/graphicsview/functional/functional.pro [deleted file]
tests/benchmarks/gui/graphicsview/graphicsview.pro [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicsanchorlayout/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/graphicsview/qgraphicsanchorlayout/qgraphicsanchorlayout.pro [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp
tests/benchmarks/gui/graphicsview/qgraphicsitem/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/graphicsview/qgraphicsitem/qgraphicsitem.pro [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp
tests/benchmarks/gui/graphicsview/qgraphicslayout/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/graphicsview/qgraphicslayout/qgraphicslayout.pro [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicslayout/tst_qgraphicslayout.cpp
tests/benchmarks/gui/graphicsview/qgraphicslinearlayout/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/graphicsview/qgraphicslinearlayout/qgraphicslinearlayout.pro [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp
tests/benchmarks/gui/graphicsview/qgraphicsscene/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/graphicsview/qgraphicsscene/qgraphicsscene.pro [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicsscene/tst_qgraphicsscene.cpp
tests/benchmarks/gui/graphicsview/qgraphicsview/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/graphicsview/qgraphicsview/benchapps/chipTest/chip.cpp
tests/benchmarks/gui/graphicsview/qgraphicsview/benchapps/moveItems/main.cpp
tests/benchmarks/gui/graphicsview/qgraphicsview/benchapps/scrolltest/main.cpp
tests/benchmarks/gui/graphicsview/qgraphicsview/chiptester/chip.cpp
tests/benchmarks/gui/graphicsview/qgraphicsview/chiptester/chiptester.pri [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicsview/qgraphicsview.pro [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
tests/benchmarks/gui/graphicsview/qgraphicswidget/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/graphicsview/qgraphicswidget/qgraphicswidget.pro [deleted file]
tests/benchmarks/gui/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp
tests/benchmarks/gui/image/blendbench/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/image/blendbench/blendbench.pro [deleted file]
tests/benchmarks/gui/image/blendbench/main.cpp
tests/benchmarks/gui/image/qimageconversion/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/image/qimageconversion/qimageconversion.pro [deleted file]
tests/benchmarks/gui/image/qimageconversion/tst_qimageconversion.cpp
tests/benchmarks/gui/image/qimagereader/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/image/qimagereader/qimagereader.pro [deleted file]
tests/benchmarks/gui/image/qimagereader/tst_qimagereader.cpp
tests/benchmarks/gui/image/qpixmap/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/image/qpixmap/qpixmap.pro [deleted file]
tests/benchmarks/gui/image/qpixmap/tst_qpixmap.cpp
tests/benchmarks/gui/image/qpixmapcache/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/image/qpixmapcache/qpixmapcache.pro [deleted file]
tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp
tests/benchmarks/gui/itemviews/qtableview/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/itemviews/qtableview/qtableview.pro [deleted file]
tests/benchmarks/gui/itemviews/qtableview/tst_qtableview.cpp
tests/benchmarks/gui/kernel/qapplication/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/kernel/qapplication/main.cpp
tests/benchmarks/gui/kernel/qapplication/qapplication.pro [deleted file]
tests/benchmarks/gui/kernel/qguimetatype/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/kernel/qguimetatype/qguimetatype.pro [deleted file]
tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp
tests/benchmarks/gui/kernel/qguivariant/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/kernel/qguivariant/qguivariant.pro [deleted file]
tests/benchmarks/gui/kernel/qguivariant/tst_qguivariant.cpp
tests/benchmarks/gui/kernel/qwidget/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/kernel/qwidget/qwidget.pro [deleted file]
tests/benchmarks/gui/kernel/qwidget/tst_qwidget.cpp
tests/benchmarks/gui/math3d/qmatrix4x4/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/math3d/qmatrix4x4/qmatrix4x4.pro [deleted file]
tests/benchmarks/gui/math3d/qmatrix4x4/tst_qmatrix4x4.cpp
tests/benchmarks/gui/math3d/qquaternion/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/math3d/qquaternion/qquaternion.pro [deleted file]
tests/benchmarks/gui/math3d/qquaternion/tst_qquaternion.cpp
tests/benchmarks/gui/painting/qpainter/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/painting/qpainter/qpainter.pro [deleted file]
tests/benchmarks/gui/painting/qpainter/tst_qpainter.cpp
tests/benchmarks/gui/painting/qregion/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/painting/qregion/main.cpp
tests/benchmarks/gui/painting/qregion/qregion.pro [deleted file]
tests/benchmarks/gui/painting/qtbench/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/painting/qtbench/qtbench.pro [deleted file]
tests/benchmarks/gui/painting/qtbench/tst_qtbench.cpp
tests/benchmarks/gui/painting/qtracebench/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/painting/qtracebench/qtracebench.pro [deleted file]
tests/benchmarks/gui/painting/qtracebench/tst_qtracebench.cpp
tests/benchmarks/gui/painting/qtransform/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/painting/qtransform/qtransform.pro [deleted file]
tests/benchmarks/gui/painting/qtransform/tst_qtransform.cpp
tests/benchmarks/gui/styles/qstylesheetstyle/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/styles/qstylesheetstyle/main.cpp
tests/benchmarks/gui/styles/qstylesheetstyle/qstylesheetstyle.pro [deleted file]
tests/benchmarks/gui/text/qfontmetrics/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/text/qfontmetrics/main.cpp
tests/benchmarks/gui/text/qfontmetrics/qfontmetrics.pro [deleted file]
tests/benchmarks/gui/text/qtext/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/gui/text/qtext/main.cpp
tests/benchmarks/gui/text/qtext/qtext.pro [deleted file]
tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/main.cpp
tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/qfile_vs_qnetworkaccessmanager.pro [deleted file]
tests/benchmarks/network/access/qnetworkdiskcache/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/network/access/qnetworkdiskcache/qnetworkdiskcache.pro [deleted file]
tests/benchmarks/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp
tests/benchmarks/network/access/qnetworkreply/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/network/access/qnetworkreply/qnetworkreply.pro [deleted file]
tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp
tests/benchmarks/network/kernel/qhostinfo/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/network/kernel/qhostinfo/main.cpp
tests/benchmarks/network/kernel/qhostinfo/qhostinfo.pro [deleted file]
tests/benchmarks/network/socket/qtcpserver/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/network/socket/qtcpserver/qtcpserver.pro [deleted file]
tests/benchmarks/network/socket/qtcpserver/tst_qtcpserver.cpp
tests/benchmarks/network/ssl/qsslsocket/CMakeLists.txt [new file with mode: 0644]
tests/benchmarks/network/ssl/qsslsocket/qsslsocket.pro [deleted file]
tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp
tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp

index f63640b..16ab9c6 100644 (file)
@@ -72,7 +72,7 @@ private slots:
 
 void tst_qdiriterator::data()
 {
-#if defined(Q_OS_WINCE) || defined(Q_OS_SYMBIAN)
+#if defined(Q_OS_WINCE)
     QByteArray qtdir = qPrintable(QCoreApplication::applicationDirPath());
     qtdir += "/depot";
 #else
index 7fc76fd..9bc9093 100644 (file)
@@ -549,7 +549,7 @@ void tst_qfile::createSmallFiles()
     dir.cd("tst");
     tmpDirName = dir.absolutePath();
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_WINCE)  
+#if defined(Q_WS_WINCE)  
     for (int i = 0; i < 100; ++i)
 #else
     for (int i = 0; i < 1000; ++i)
index ad1bbc9..0f83c99 100644 (file)
@@ -66,10 +66,8 @@ void tst_qiodevice::read_data()
     QTest::newRow("100k")     << qint64(100 * 1024);
     QTest::newRow("1000k")    << qint64(1000 * 1024);
     QTest::newRow("10000k")   << qint64(10000 * 1024);
-#ifndef Q_OS_SYMBIAN // Symbian devices don't (yet) have enough available RAM to run these
     QTest::newRow("100000k")  << qint64(100000 * 1024);
     QTest::newRow("1000000k") << qint64(1000000 * 1024);
-#endif
 }
 
 void tst_qiodevice::read_old()
index 441862c..d8a4bba 100644 (file)
@@ -132,8 +132,7 @@ struct Large { // A "large" item type
     int x[1000];
 };
 
-// Symbian devices typically have limited memory
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_WINCE)
+#if defined(Q_WS_WINCE)
 #  define LARGE_MAX_SIZE 2000
 #else
 #  define LARGE_MAX_SIZE 20000
index d0d82e9..3201d57 100644 (file)
@@ -783,7 +783,7 @@ void tst_QString::equals2_data() const
 
 static void __attribute__((noinline)) equals2_selftest()
 {
-#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
+#if defined(Q_OS_UNIX)
     const long pagesize = sysconf(_SC_PAGESIZE);
     void *page1, *page3;
     ushort *page2;
@@ -1340,7 +1340,7 @@ void tst_QString::ucstrncmp() const
         };
         static const int functionCount = sizeof func / sizeof func[0];
 
-#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
+#if defined(Q_OS_UNIX)
         const long pagesize = sysconf(_SC_PAGESIZE);
         void *page1, *page3;
         ushort *page2;
index 6ae5ba7..ef62982 100644 (file)
 #include <QDeclarativeComponent>
 #include <QFile>
 
-#ifdef Q_OS_SYMBIAN
-// In Symbian OS test data is located in applications private dir
-#define SRCDIR "."
-#endif
-
 class tst_compilation : public QObject
 {
     Q_OBJECT
index aa4ed2a..ddc1ece 100644 (file)
 #include <QDebug>
 #include "testtypes.h"
 
-//TESTED_FILES=
-
-#ifdef Q_OS_SYMBIAN
-// In Symbian OS test data is located in applications private dir
-#define SRCDIR "."
-#endif
-
 class tst_qmlcomponent : public QObject
 {
     Q_OBJECT
diff --git a/tests/benchmarks/gui/animation/qanimation/CMakeLists.txt b/tests/benchmarks/gui/animation/qanimation/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3ddc473
--- /dev/null
@@ -0,0 +1,9 @@
+katie_test(tst_bench_qanimation
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/dummyobject.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/dummyanimation.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/rectanimation.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/dummyobject.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/dummyanimation.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/rectanimation.h
+)
index 5cc1c41..b7f5794 100644 (file)
@@ -39,6 +39,8 @@
 **
 ****************************************************************************/
 
+#include <QVariantAnimation>
+#include <QPropertyAnimation>
 #include <QtGui>
 
 #ifndef _DUMMYANIMATION_H__
index d64e2c8..bc7bb99 100644 (file)
@@ -42,7 +42,8 @@
 #include <QtGui>
 #include <qtest.h>
 
-#include "dummyobject.h"
+// ###: was dummyobject.h
+#include "moc_dummyobject.h"
 #include "dummyanimation.h"
 #include "rectanimation.h"
 
@@ -184,8 +185,6 @@ void tst_qanimation::floatAnimation()
     }
 }
 
-
-
 QTEST_MAIN(tst_qanimation)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/gui/animation/qanimation/qanimation.pro b/tests/benchmarks/gui/animation/qanimation/qanimation.pro
deleted file mode 100644 (file)
index e42a830..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qanimation
-DEPENDPATH += .
-INCLUDEPATH += .
-
-CONFIG += release
-
-SOURCES += main.cpp \
-           dummyobject.cpp \
-           dummyanimation.cpp \
-           rectanimation.cpp
-
-HEADERS += dummyobject.h \
-           dummyanimation.h \
-           rectanimation.h
index d7117ab..89f976e 100644 (file)
@@ -39,6 +39,9 @@
 **
 ****************************************************************************/
 
+#include <QAbstractAnimation>
+#include <QEasingCurve>
+
 #include "rectanimation.h"
 #include "dummyobject.h"
 
diff --git a/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt.broken b/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt.broken
new file mode 100644 (file)
index 0000000..fdc9952
--- /dev/null
@@ -0,0 +1,70 @@
+katie_test(tst_GraphicsViewBenchmark
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/gvbwidget.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/abstractscrollarea.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mainview.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/iconitem.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/label.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listitem.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/scrollbar.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/simplelistview.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/scroller.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/button.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/menu.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/themeevent.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/theme.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/backgrounditem.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/topbar.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/commandline.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/dummydatagen.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/settings.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listitemcache.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listwidget.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/simplelist.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/itemrecyclinglist.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/itemrecyclinglistview.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/abstractitemview.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/abstractviewitem.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/recycledlistitem.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listitemcontainer.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/abstractitemcontainer.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listmodel.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/GraphicsViewBenchmark.qrc
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/gvbwidget.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/abstractscrollarea.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mainview.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/iconitem.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/label.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listitem.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/scrollbar.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/simplelistview.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/scroller.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/scroller_p.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/button.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/menu.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/themeevent.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/theme.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/backgrounditem.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/topbar.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/commandline.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/dummydatagen.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/settings.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listitemcache.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listwidget.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/simplelist.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/itemrecyclinglist.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/itemrecyclinglistview.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/abstractitemview.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/abstractviewitem.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/recycledlistitem.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listitemcontainer.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/abstractitemcontainer.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/widgets/listmodel.h
+)
+
+target_link_libraries(tst_GraphicsViewBenchmark KtSvg)
+if(WITH_OPENGL AND OPENGL_FOUND)
+    target_link_libraries(tst_GraphicsViewBenchmark KtOpenGL)
+endif()
+target_include_directories(tst_GraphicsViewBenchmark PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/widgets)
+
diff --git a/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/GraphicsViewBenchmark.pro b/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/GraphicsViewBenchmark.pro
deleted file mode 100644 (file)
index 131ec12..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-
-QT += svg
-contains(QT_CONFIG, opengl):QT += opengl
-
-HEADERS += widgets/gvbwidget.h \
-        widgets/abstractscrollarea.h \
-        widgets/mainview.h \
-        widgets/iconitem.h \
-        widgets/label.h \
-        widgets/listitem.h \
-        widgets/scrollbar.h \
-        widgets/simplelistview.h \
-        widgets/scroller.h \
-        widgets/scroller_p.h \
-        widgets/button.h \
-        widgets/menu.h \
-        widgets/themeevent.h \
-        widgets/theme.h \
-        widgets/backgrounditem.h \
-        widgets/topbar.h \
-        widgets/commandline.h \
-        widgets/dummydatagen.h \
-        widgets/settings.h \
-        widgets/listitemcache.h \
-        widgets/listwidget.h \
-        widgets/simplelist.h \
-        widgets/itemrecyclinglist.h \
-        widgets/itemrecyclinglistview.h \
-        widgets/abstractitemview.h \
-        widgets/abstractviewitem.h \
-        widgets/recycledlistitem.h \
-        widgets/listitemcontainer.h \
-        widgets/abstractitemcontainer.h \
-        widgets/listmodel.h
-
-SOURCES += main.cpp \
-        widgets/gvbwidget.cpp \
-        widgets/abstractscrollarea.cpp \
-        widgets/mainview.cpp \
-        widgets/iconitem.cpp \
-        widgets/label.cpp \
-        widgets/listitem.cpp \
-        widgets/scrollbar.cpp \
-        widgets/simplelistview.cpp \
-        widgets/scroller.cpp \
-        widgets/button.cpp \
-        widgets/menu.cpp \
-        widgets/themeevent.cpp \
-        widgets/theme.cpp \
-        widgets/backgrounditem.cpp \
-        widgets/topbar.cpp \
-        widgets/commandline.cpp \
-        widgets/dummydatagen.cpp \
-        widgets/settings.cpp \
-        widgets/listitemcache.cpp \
-        widgets/listwidget.cpp \
-        widgets/simplelist.cpp \
-        widgets/itemrecyclinglist.cpp \
-        widgets/itemrecyclinglistview.cpp \
-        widgets/abstractitemview.cpp \
-        widgets/abstractviewitem.cpp \
-        widgets/recycledlistitem.cpp \
-        widgets/listitemcontainer.cpp \
-        widgets/abstractitemcontainer.cpp \
-        widgets/listmodel.cpp
-
-TARGET = tst_GraphicsViewBenchmark
-RESOURCES += GraphicsViewBenchmark.qrc
-INCLUDEPATH += widgets
index df27384..1fdd942 100644 (file)
@@ -322,7 +322,7 @@ void tst_GraphicsViewBenchmark::initTestCase()
         mMainView->resize(mSettings->size().width(), mSettings->size().height());
         mMainView->show();
     } else {
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5)
+#if defined(Q_WS_MAEMO_5)
         mMainView->showFullScreen();
 #else
         if (QApplication::desktop()->width() < 360 || QApplication::desktop()->height() < 640) {
@@ -780,7 +780,7 @@ int main(int argc, char *argv[])
             view.resize(settings.size().width(), settings.size().height());
             view.show();
         } else {
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5)
+#if defined(Q_WS_MAEMO_5)
             view.showFullScreen();
 #else
             if (QApplication::desktop()->width() < 360 || QApplication::desktop()->height() < 640) {
@@ -802,4 +802,5 @@ int main(int argc, char *argv[])
     return returnValue;
 }
 
-#include "main.moc"
+#include "moc_main.cpp"
+#include "qrc_GraphicsViewBenchmark.cpp"
diff --git a/tests/benchmarks/gui/graphicsview/functional/functional.pro b/tests/benchmarks/gui/graphicsview/functional/functional.pro
deleted file mode 100644 (file)
index f8e122b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS = \
-        GraphicsViewBenchmark
diff --git a/tests/benchmarks/gui/graphicsview/graphicsview.pro b/tests/benchmarks/gui/graphicsview/graphicsview.pro
deleted file mode 100644 (file)
index cd7d88e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS = \
-        #functional \        # FIXME: broken
-        qgraphicsanchorlayout \
-        qgraphicsitem \
-        qgraphicslayout \
-        qgraphicsscene \
-        qgraphicsview \
-        qgraphicswidget
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsanchorlayout/CMakeLists.txt b/tests/benchmarks/gui/graphicsview/qgraphicsanchorlayout/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f9bc9c7
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qgraphicsanchorlayout
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qgraphicsanchorlayout.cpp
+)
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsanchorlayout/qgraphicsanchorlayout.pro b/tests/benchmarks/gui/graphicsview/qgraphicsanchorlayout/qgraphicsanchorlayout.pro
deleted file mode 100644 (file)
index 3ede6e8..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qgraphicsanchorlayout
-
-SOURCES += tst_qgraphicsanchorlayout.cpp
-
index 473ff94..ce876fa 100644 (file)
@@ -430,4 +430,4 @@ void tst_QGraphicsAnchorLayout::linearVsAnchorNested()
 
 QTEST_MAIN(tst_QGraphicsAnchorLayout)
 
-#include "tst_qgraphicsanchorlayout.moc"
+#include "moc_tst_qgraphicsanchorlayout.cpp"
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsitem/CMakeLists.txt b/tests/benchmarks/gui/graphicsview/qgraphicsitem/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8996e01
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qgraphicsitem
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qgraphicsitem.cpp
+)
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsitem/qgraphicsitem.pro b/tests/benchmarks/gui/graphicsview/qgraphicsitem/qgraphicsitem.pro
deleted file mode 100644 (file)
index d4935c0..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qgraphicsitem
-
-SOURCES += tst_qgraphicsitem.cpp
index 96a0b6a..f96685d 100644 (file)
@@ -124,7 +124,7 @@ void tst_QGraphicsItem::setParentItem_deep()
             childRect->setParentItem(lastRect);
             lastRect = childRect;
         }
-        QGraphicsItem *first = rect.children().first();
+        QGraphicsItem *first = rect.childItems().first();
         first->setParentItem(0);
     }
 }
@@ -243,4 +243,5 @@ void tst_QGraphicsItem::translate()
 }
 
 QTEST_MAIN(tst_QGraphicsItem)
-#include "tst_qgraphicsitem.moc"
+
+#include "moc_tst_qgraphicsitem.cpp"
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicslayout/CMakeLists.txt b/tests/benchmarks/gui/graphicsview/qgraphicslayout/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d7e7549
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qgraphicslayout
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qgraphicslayout.cpp
+)
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicslayout/qgraphicslayout.pro b/tests/benchmarks/gui/graphicsview/qgraphicslayout/qgraphicslayout.pro
deleted file mode 100644 (file)
index 19e2979..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qgraphicslayout
-
-SOURCES += tst_qgraphicslayout.cpp
-
index b7aed01..37646f3 100644 (file)
@@ -150,4 +150,4 @@ void tst_QGraphicsLayout::invalidate()
 
 QTEST_MAIN(tst_QGraphicsLayout)
 
-#include "tst_qgraphicslayout.moc"
+#include "moc_tst_qgraphicslayout.cpp"
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicslinearlayout/CMakeLists.txt b/tests/benchmarks/gui/graphicsview/qgraphicslinearlayout/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b598457
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qgraphicslinearlayout
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qgraphicslinearlayout.cpp
+)
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicslinearlayout/qgraphicslinearlayout.pro b/tests/benchmarks/gui/graphicsview/qgraphicslinearlayout/qgraphicslinearlayout.pro
deleted file mode 100644 (file)
index ff85fe8..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qgraphicslinearlayout
-
-SOURCES += tst_qgraphicslinearlayout.cpp
-
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsscene/CMakeLists.txt b/tests/benchmarks/gui/graphicsview/qgraphicsscene/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e3977b2
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qgraphicsscene
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qgraphicsscene.cpp
+)
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsscene/qgraphicsscene.pro b/tests/benchmarks/gui/graphicsview/qgraphicsscene/qgraphicsscene.pro
deleted file mode 100644 (file)
index 4245233..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qgraphicsscene
-
-SOURCES += tst_qgraphicsscene.cpp
-
-symbian: TARGET.EPOCHEAPSIZE = 0x100000 0x3000000
index ffd5a7e..16e1000 100644 (file)
@@ -256,4 +256,5 @@ void tst_QGraphicsScene::initialShow()
 }
 
 QTEST_MAIN(tst_QGraphicsScene)
-#include "tst_qgraphicsscene.moc"
+
+#include "moc_tst_qgraphicsscene.cpp"
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsview/CMakeLists.txt b/tests/benchmarks/gui/graphicsview/qgraphicsview/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4cc7a73
--- /dev/null
@@ -0,0 +1,21 @@
+katie_test(tst_bench_qgraphicsview
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qgraphicsview.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/chiptester/chiptester.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/chiptester/chip.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/chiptester/chiptester.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/chiptester/chip.h
+)
+
+set(test_resources
+    ${CMAKE_CURRENT_SOURCE_DIR}/chiptester/images.qrc
+    ${CMAKE_CURRENT_SOURCE_DIR}/qgraphicsview.qrc
+)
+katie_resource(
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qgraphicsview.cpp
+    "${test_resources}"
+    tst_qgraphicsview
+)
+
+if(WITH_OPENGL AND OPENGL_FOUND)
+    target_link_libraries(tst_bench_qgraphicsview KtOpenGL)
+endif()
\ No newline at end of file
index 9b1e4c9..650150c 100644 (file)
@@ -51,7 +51,7 @@ Chip::Chip(const QColor &color, int x, int y)
     setZValue((x + y) % 2);
 
     setFlags(ItemIsSelectable | ItemIsMovable);
-    setAcceptsHoverEvents(true);
+    setAcceptHoverEvents(true);
 }
 
 QRectF Chip::boundingRect() const
index 865da0a..6ac21fa 100644 (file)
@@ -41,6 +41,7 @@
 
 #include "chip.h"
 
+#include "QtCore/qvarlengtharray.h"
 #include <QtGui>
 
 Chip::Chip(const QColor &color, int x, int y)
@@ -51,7 +52,7 @@ Chip::Chip(const QColor &color, int x, int y)
     setZValue((x + y) % 2);
 
     setFlags(ItemIsSelectable | ItemIsMovable);
-    setAcceptsHoverEvents(true);
+    setAcceptHoverEvents(true);
 }
 
 QRectF Chip::boundingRect() const
@@ -180,3 +181,5 @@ void Chip::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
     QGraphicsItem::mouseReleaseEvent(event);
     update();
 }
+
+#include "chiptester/moc_chiptester.h"
\ No newline at end of file
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsview/chiptester/chiptester.pri b/tests/benchmarks/gui/graphicsview/qgraphicsview/chiptester/chiptester.pri
deleted file mode 100644 (file)
index a9e0bf8..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-SOURCES += \
-       chiptester/chiptester.cpp \
-       chiptester/chip.cpp
-
-HEADERS += \
-       chiptester/chiptester.h \
-       chiptester/chip.h
-
-RESOURCES += \
-        chiptester/images.qrc
-
-contains(QT_CONFIG, opengl) QT += opengl
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsview/qgraphicsview.pro b/tests/benchmarks/gui/graphicsview/qgraphicsview/qgraphicsview.pro
deleted file mode 100644 (file)
index bfa374c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qgraphicsview
-
-SOURCES += tst_qgraphicsview.cpp
-RESOURCES += qgraphicsview.qrc
-
-include(chiptester/chiptester.pri)
-
-symbian {
-   qt_not_deployed {
-      plugins.files = qjpeg.dll
-      plugins.path = imageformats
-      DEPLOYMENT += plugins
-   }
-}
index 962bae0..f2ba8ad 100644 (file)
@@ -911,4 +911,6 @@ void tst_QGraphicsView::paintItemCache()
 }
 
 QTEST_MAIN(tst_QGraphicsView)
-#include "tst_qgraphicsview.moc"
+
+#include "moc_tst_qgraphicsview.cpp"
+#include "qrc_tst_qgraphicsview.cpp"
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicswidget/CMakeLists.txt b/tests/benchmarks/gui/graphicsview/qgraphicswidget/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9df9956
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qgraphicswidget
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qgraphicswidget.cpp
+)
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicswidget/qgraphicswidget.pro b/tests/benchmarks/gui/graphicsview/qgraphicswidget/qgraphicswidget.pro
deleted file mode 100644 (file)
index ed53237..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qgraphicswidget
-TEMPLATE = app
-# Input
-SOURCES += tst_qgraphicswidget.cpp
index d795088..a7fdb65 100644 (file)
@@ -91,4 +91,5 @@ void tst_QGraphicsWidget::move()
 }
 
 QTEST_MAIN(tst_QGraphicsWidget)
-#include "tst_qgraphicswidget.moc"
+
+#include "moc_tst_qgraphicswidget.cpp"
diff --git a/tests/benchmarks/gui/image/blendbench/CMakeLists.txt b/tests/benchmarks/gui/image/blendbench/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c88ff93
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_blendbench
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+)
diff --git a/tests/benchmarks/gui/image/blendbench/blendbench.pro b/tests/benchmarks/gui/image/blendbench/blendbench.pro
deleted file mode 100644 (file)
index aa6ab95..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_blendbench
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
index ce48fb5..2849b5c 100644 (file)
@@ -224,4 +224,4 @@ void BlendBench::unalignedBlendArgb32()
 
 QTEST_MAIN(BlendBench)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/gui/image/qimageconversion/CMakeLists.txt b/tests/benchmarks/gui/image/qimageconversion/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a020332
--- /dev/null
@@ -0,0 +1,15 @@
+katie_test(tst_bench_imageConversion
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qimageconversion.cpp
+)
+
+# GIF is built-in supported
+target_compile_definitions(tst_bench_imageConversion PRIVATE -DQTEST_HAVE_GIF)
+if(WITH_JPEG AND JPEG_FOUND)
+    target_compile_definitions(tst_bench_imageConversion PRIVATE -DQTEST_HAVE_JPEG)
+endif()
+if(WITH_MNG AND MNG_FOUND)
+    target_compile_definitions(tst_bench_imageConversion PRIVATE -DQTEST_HAVE_MNG)
+endif()
+if(WITH_TIFF AND TIFF_FOUND)
+    target_compile_definitions(tst_bench_imageConversion PRIVATE -DQTEST_HAVE_TIFF)
+endif()
diff --git a/tests/benchmarks/gui/image/qimageconversion/qimageconversion.pro b/tests/benchmarks/gui/image/qimageconversion/qimageconversion.pro
deleted file mode 100644 (file)
index ec50d98..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_imageConversion
-
-SOURCES += tst_qimageconversion.cpp
-
-!contains(QT_CONFIG, no-gif):DEFINES += QTEST_HAVE_GIF
-!contains(QT_CONFIG, no-jpeg):DEFINES += QTEST_HAVE_JPEG
-!contains(QT_CONFIG, no-mng):DEFINES += QTEST_HAVE_MNG
-!contains(QT_CONFIG, no-tiff):DEFINES += QTEST_HAVE_TIFF
index 260f36c..0fb4ac0 100644 (file)
@@ -105,4 +105,5 @@ QImage tst_QImageConversion::generateImageRgb888(int width, int height)
 }
 
 QTEST_MAIN(tst_QImageConversion)
-#include "tst_qimageconversion.moc"
+
+#include "moc_tst_qimageconversion.cpp"
diff --git a/tests/benchmarks/gui/image/qimagereader/CMakeLists.txt b/tests/benchmarks/gui/image/qimagereader/CMakeLists.txt
new file mode 100644 (file)
index 0000000..527cbb7
--- /dev/null
@@ -0,0 +1,15 @@
+katie_test(tst_bench_qimagereader
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qimagereader.cpp
+)
+
+# GIF is built-in supported
+target_compile_definitions(tst_bench_qimagereader PRIVATE -DQTEST_HAVE_GIF)
+if(WITH_JPEG AND JPEG_FOUND)
+    target_compile_definitions(tst_bench_qimagereader PRIVATE -DQTEST_HAVE_JPEG)
+endif()
+if(WITH_MNG AND MNG_FOUND)
+    target_compile_definitions(tst_bench_qimagereader PRIVATE -DQTEST_HAVE_MNG)
+endif()
+if(WITH_TIFF AND TIFF_FOUND)
+    target_compile_definitions(tst_bench_qimagereader PRIVATE -DQTEST_HAVE_TIFF)
+endif()
diff --git a/tests/benchmarks/gui/image/qimagereader/qimagereader.pro b/tests/benchmarks/gui/image/qimagereader/qimagereader.pro
deleted file mode 100644 (file)
index db5ffcd..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qimagereader
-
-SOURCES += tst_qimagereader.cpp
-
-!contains(QT_CONFIG, no-gif):DEFINES += QTEST_HAVE_GIF
-!contains(QT_CONFIG, no-jpeg):DEFINES += QTEST_HAVE_JPEG
-!contains(QT_CONFIG, no-mng):DEFINES += QTEST_HAVE_MNG
-!contains(QT_CONFIG, no-tiff):DEFINES += QTEST_HAVE_TIFF
-QT += network
-
-wince*: {
-   addFiles.files = images
-   addFiles.path = .
-
-   CONFIG(debug, debug|release):{
-   imageFormatsPlugins.files = $$(QTDIR)/plugins/imageformats/*d4.dll
-   }
-
-   CONFIG(release, debug|release):{
-   imageFormatsPlugins.files = $$(QTDIR)/plugins/imageformats/*[^d]4.dll
-   }
-   imageFormatsPlugins.path = imageformats
-   DEPLOYMENT += addFiles imageFormatsPlugins
-}
-
index f404e1f..67b1f44 100644 (file)
@@ -241,4 +241,5 @@ void tst_QImageReader::setScaledClipRect()
 }
 
 QTEST_MAIN(tst_QImageReader)
-#include "tst_qimagereader.moc"
+
+#include "moc_tst_qimagereader.cpp"
diff --git a/tests/benchmarks/gui/image/qpixmap/CMakeLists.txt b/tests/benchmarks/gui/image/qpixmap/CMakeLists.txt
new file mode 100644 (file)
index 0000000..515e109
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qpixmap
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qpixmap.cpp
+)
diff --git a/tests/benchmarks/gui/image/qpixmap/qpixmap.pro b/tests/benchmarks/gui/image/qpixmap/qpixmap.pro
deleted file mode 100644 (file)
index 201ac9e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qpixmap
-
-SOURCES += tst_qpixmap.cpp
index a9c495f..1866f37 100644 (file)
@@ -46,7 +46,7 @@
 #include <QImageReader>
 #include <QPainter>
 #include <QPixmap>
-#include <private/qpixmap_raster_p.h>
+#include <qpixmap_raster_p.h>
 
 class tst_QPixmap : public QObject
 {
@@ -312,4 +312,4 @@ void tst_QPixmap::fromImageReader()
 
 QTEST_MAIN(tst_QPixmap)
 
-#include "tst_qpixmap.moc"
+#include "moc_tst_qpixmap.cpp"
diff --git a/tests/benchmarks/gui/image/qpixmapcache/CMakeLists.txt b/tests/benchmarks/gui/image/qpixmapcache/CMakeLists.txt
new file mode 100644 (file)
index 0000000..23eecca
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qpixmapcache
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qpixmapcache.cpp
+)
diff --git a/tests/benchmarks/gui/image/qpixmapcache/qpixmapcache.pro b/tests/benchmarks/gui/image/qpixmapcache/qpixmapcache.pro
deleted file mode 100644 (file)
index 78ac97d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qpixmapcache
-TEMPLATE = app
-# Input
-SOURCES += tst_qpixmapcache.cpp
index e46225d..307d850 100644 (file)
@@ -223,4 +223,5 @@ void tst_QPixmapCache::styleUseCaseComplexKey()
 
 
 QTEST_MAIN(tst_QPixmapCache)
-#include "tst_qpixmapcache.moc"
+
+#include "moc_tst_qpixmapcache.cpp"
diff --git a/tests/benchmarks/gui/itemviews/qtableview/CMakeLists.txt b/tests/benchmarks/gui/itemviews/qtableview/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4caadb7
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qtableview
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qtableview.cpp
+)
diff --git a/tests/benchmarks/gui/itemviews/qtableview/qtableview.pro b/tests/benchmarks/gui/itemviews/qtableview/qtableview.pro
deleted file mode 100644 (file)
index 3f4d4e1..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qtableview
-
-SOURCES += tst_qtableview.cpp
-
index 7d338e8..332c384 100644 (file)
@@ -364,4 +364,5 @@ void tst_QTableView::columnRemoval()
 }
 
 QTEST_MAIN(tst_QTableView)
-#include "tst_qtableview.moc"
+
+#include "moc_tst_qtableview.cpp"
diff --git a/tests/benchmarks/gui/kernel/qapplication/CMakeLists.txt b/tests/benchmarks/gui/kernel/qapplication/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4440a14
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qapplication
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+)
index 73885a6..e8484a4 100644 (file)
@@ -68,4 +68,4 @@ void tst_qapplication::ctor()
 
 QTEST_APPLESS_MAIN(tst_qapplication)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/gui/kernel/qapplication/qapplication.pro b/tests/benchmarks/gui/kernel/qapplication/qapplication.pro
deleted file mode 100644 (file)
index e12a60c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qapplication
-DEPENDPATH += .
-INCLUDEPATH += .
-
-CONFIG += release
-
-# Input
-SOURCES += main.cpp
diff --git a/tests/benchmarks/gui/kernel/qguimetatype/CMakeLists.txt b/tests/benchmarks/gui/kernel/qguimetatype/CMakeLists.txt
new file mode 100644 (file)
index 0000000..66609ba
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qguimetatype
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qguimetatype.cpp
+)
diff --git a/tests/benchmarks/gui/kernel/qguimetatype/qguimetatype.pro b/tests/benchmarks/gui/kernel/qguimetatype/qguimetatype.pro
deleted file mode 100644 (file)
index 7ef99e4..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qguimetatype
-
-SOURCES += tst_qguimetatype.cpp
-
index c955c6d..28064ea 100644 (file)
@@ -114,4 +114,5 @@ void tst_QGuiMetaType::constructGuiTypeCopy()
 }
 
 QTEST_MAIN(tst_QGuiMetaType)
-#include "tst_qguimetatype.moc"
+
+#include "moc_tst_qguimetatype.cpp"
diff --git a/tests/benchmarks/gui/kernel/qguivariant/CMakeLists.txt b/tests/benchmarks/gui/kernel/qguivariant/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f698057
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qguivariant
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qguivariant.cpp
+)
diff --git a/tests/benchmarks/gui/kernel/qguivariant/qguivariant.pro b/tests/benchmarks/gui/kernel/qguivariant/qguivariant.pro
deleted file mode 100644 (file)
index 4e05dd7..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qguivariant
-
-SOURCES += tst_qguivariant.cpp
-
index 1480164..1175cfd 100644 (file)
@@ -112,4 +112,5 @@ void tst_QGuiVariant::createGuiTypeCopy()
 }
 
 QTEST_MAIN(tst_QGuiVariant)
-#include "tst_qguivariant.moc"
+
+#include "moc_tst_qguivariant.cpp"
diff --git a/tests/benchmarks/gui/kernel/qwidget/CMakeLists.txt b/tests/benchmarks/gui/kernel/qwidget/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5416849
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qwidget
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qwidget.cpp
+)
diff --git a/tests/benchmarks/gui/kernel/qwidget/qwidget.pro b/tests/benchmarks/gui/kernel/qwidget/qwidget.pro
deleted file mode 100644 (file)
index 4c6e5c7..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-load(qttest_p4)
-
-TARGET = tst_bench_qwidget
-SOURCES += tst_qwidget.cpp
index 0903e92..d08166c 100644 (file)
@@ -159,17 +159,12 @@ void tst_QWidget::update_data()
     QTest::newRow("10x10x1 opaque")        << 10 << 10 << 1   << true;
     QTest::newRow("10x10x10 opaque")       << 10 << 10 << 10  << true;
     QTest::newRow("10x10x100 opaque")      << 10 << 10 << 100 << true;
-#ifndef Q_OS_SYMBIAN
-    //These test cases cause stack overflow in QWidgetPrivate::paintSiblingsRecursive
-    //see http://bugreports.qt-project.org/browse/QTBUG-8512
-    //Symbian threads have a hard limit of 80kB user stack
     QTest::newRow("25x25x1 transparent ")  << 25 << 25 << 1   << false;
     QTest::newRow("25x25x10 transparent")  << 25 << 25 << 10  << false;
     QTest::newRow("25x25x100 transparent") << 25 << 25 << 100 << false;
     QTest::newRow("25x25x1 opaque")        << 25 << 25 << 1   << true;
     QTest::newRow("25x25x10 opaque")       << 25 << 25 << 10  << true;
     QTest::newRow("25x25x100 opaque")      << 25 << 25 << 100 << true;
-#endif
 }
 
 void tst_QWidget::update()
@@ -257,4 +252,4 @@ void tst_QWidget::updateComplex()
 
 QTEST_MAIN(tst_QWidget)
 
-#include "tst_qwidget.moc"
+#include "moc_tst_qwidget.cpp"
diff --git a/tests/benchmarks/gui/math3d/qmatrix4x4/CMakeLists.txt b/tests/benchmarks/gui/math3d/qmatrix4x4/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c844995
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qmatrix4x4
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qmatrix4x4.cpp
+)
diff --git a/tests/benchmarks/gui/math3d/qmatrix4x4/qmatrix4x4.pro b/tests/benchmarks/gui/math3d/qmatrix4x4/qmatrix4x4.pro
deleted file mode 100644 (file)
index b6a2046..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qmatrix4x4
-
-SOURCES += tst_qmatrix4x4.cpp
-
index d8832cd..4f14c4d 100644 (file)
@@ -669,4 +669,4 @@ void tst_QMatrix4x4::compareRotateAfterScale()
 
 QTEST_MAIN(tst_QMatrix4x4)
 
-#include "tst_qmatrix4x4.moc"
+#include "moc_tst_qmatrix4x4.cpp"
diff --git a/tests/benchmarks/gui/math3d/qquaternion/CMakeLists.txt b/tests/benchmarks/gui/math3d/qquaternion/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ec13716
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qquaternion
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qquaternion.cpp
+)
diff --git a/tests/benchmarks/gui/math3d/qquaternion/qquaternion.pro b/tests/benchmarks/gui/math3d/qquaternion/qquaternion.pro
deleted file mode 100644 (file)
index bd6a0d3..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qquaternion
-
-SOURCES += tst_qquaternion.cpp
-
index 0021a6d..0a8b7c5 100644 (file)
@@ -121,4 +121,5 @@ void tst_QQuaternion::multiply()
 }
 
 QTEST_MAIN(tst_QQuaternion)
-#include "tst_qquaternion.moc"
+
+#include "moc_tst_qquaternion.cpp"
diff --git a/tests/benchmarks/gui/painting/qpainter/CMakeLists.txt b/tests/benchmarks/gui/painting/qpainter/CMakeLists.txt
new file mode 100644 (file)
index 0000000..549b810
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qpainter
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qpainter.cpp
+)
diff --git a/tests/benchmarks/gui/painting/qpainter/qpainter.pro b/tests/benchmarks/gui/painting/qpainter/qpainter.pro
deleted file mode 100644 (file)
index 1ab4522..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qpainter
-
-SOURCES += tst_qpainter.cpp
-
-symbian: TARGET.EPOCHEAPSIZE = 0x100000 0x3000000
index 6955fd4..e1d6907 100644 (file)
@@ -41,6 +41,7 @@
 
 #include <qtest.h>
 #include <QPainter>
+#include <QPen>
 #include <QPixmap>
 #include <QDialog>
 #include <QImage>
@@ -50,7 +51,7 @@
 #define M_PI 3.14159265358979323846
 #endif
 
-#include <private/qpixmap_raster_p.h>
+#include <qpixmap_raster_p.h>
 
 Q_DECLARE_METATYPE(QLine)
 Q_DECLARE_METATYPE(QRect)
@@ -1663,4 +1664,4 @@ void tst_QPainter::drawTransformedFilledImage()
 
 QTEST_MAIN(tst_QPainter)
 
-#include "tst_qpainter.moc"
+#include "moc_tst_qpainter.cpp"
diff --git a/tests/benchmarks/gui/painting/qregion/CMakeLists.txt b/tests/benchmarks/gui/painting/qregion/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5622fd5
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qregion
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+)
index e703b2b..a8ed74f 100644 (file)
@@ -136,4 +136,4 @@ void tst_qregion::intersects()
 
 QTEST_MAIN(tst_qregion)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/gui/painting/qregion/qregion.pro b/tests/benchmarks/gui/painting/qregion/qregion.pro
deleted file mode 100644 (file)
index ec93a62..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qregion
-DEPENDPATH += .
-INCLUDEPATH += .
-
-CONFIG += release
-
-# Input
-SOURCES += main.cpp
diff --git a/tests/benchmarks/gui/painting/qtbench/CMakeLists.txt b/tests/benchmarks/gui/painting/qtbench/CMakeLists.txt
new file mode 100644 (file)
index 0000000..abd9b38
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_qtbench
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qtbench.cpp
+)
diff --git a/tests/benchmarks/gui/painting/qtbench/qtbench.pro b/tests/benchmarks/gui/painting/qtbench/qtbench.pro
deleted file mode 100644 (file)
index 91f416d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_qtbench
-
-SOURCES += tst_qtbench.cpp
-
index 701b477..bb517e8 100644 (file)
 
 #include <qtest.h>
 
+#include <QtCore/qmath.h>
 #include <QtGui>
 
 #include "benchmarktests.h"
 
-//TESTED_FILES=
-
 class BenchWidget : public QWidget
 {
 public:
@@ -251,4 +250,5 @@ void tst_QtBench::qtBench()
 }
 
 QTEST_MAIN(tst_QtBench)
-#include "tst_qtbench.moc"
+
+#include "moc_tst_qtbench.cpp"
diff --git a/tests/benchmarks/gui/painting/qtracebench/CMakeLists.txt b/tests/benchmarks/gui/painting/qtracebench/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1c9af24
--- /dev/null
@@ -0,0 +1,10 @@
+katie_test(tst_qtracebench
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qtracebench.cpp
+    ${CMAKE_CURRENT_SOURCE_DIR}/qtracebench.qrc
+)
+
+if(WITH_HARFBUZZ AND HARFBUZZ_FOUND)
+    target_include_directories(tst_qtracebench PRIVATE ${HARFBUZZ_INCLUDE_DIRS})
+else()
+    target_include_directories(tst_qtracebench PRIVATE ${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src)
+endif()
\ No newline at end of file
diff --git a/tests/benchmarks/gui/painting/qtracebench/qtracebench.pro b/tests/benchmarks/gui/painting/qtracebench/qtracebench.pro
deleted file mode 100644 (file)
index 56ec8bb..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_qtracebench
-
-INCLUDEPATH += . $$QT_SOURCE_TREE/src/3rdparty/harfbuzz/src
-
-RESOURCES += qtracebench.qrc
-
-SOURCES += tst_qtracebench.cpp
-
index 5b4c939..818ddd7 100644 (file)
 
 #include <qtest.h>
 
+#include <QtCore/qmath.h>
 #include <QtGui>
 
-#include <private/qpaintengineex_p.h>
-#include <private/qpaintbuffer_p.h>
-
-//TESTED_FILES=
+#include <qpaintengineex_p.h>
+#include <qpaintbuffer_p.h>
 
 class ReplayWidget : public QWidget
 {
@@ -259,4 +258,6 @@ void tst_QTraceBench::trace()
 }
 
 QTEST_MAIN(tst_QTraceBench)
-#include "tst_qtracebench.moc"
+
+#include "moc_tst_qtracebench.cpp"
+#include "qrc_qtracebench.cpp"
diff --git a/tests/benchmarks/gui/painting/qtransform/CMakeLists.txt b/tests/benchmarks/gui/painting/qtransform/CMakeLists.txt
new file mode 100644 (file)
index 0000000..540cdc6
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qtransform
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qtransform.cpp
+)
diff --git a/tests/benchmarks/gui/painting/qtransform/qtransform.pro b/tests/benchmarks/gui/painting/qtransform/qtransform.pro
deleted file mode 100644 (file)
index dc60407..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qtransform
-
-SOURCES += tst_qtransform.cpp
-
index ab0b719..1c67682 100644 (file)
@@ -589,4 +589,5 @@ void tst_QTransform::inverted()
 }
 
 QTEST_MAIN(tst_QTransform)
-#include "tst_qtransform.moc"
+
+#include "moc_tst_qtransform.cpp"
diff --git a/tests/benchmarks/gui/styles/qstylesheetstyle/CMakeLists.txt b/tests/benchmarks/gui/styles/qstylesheetstyle/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d111c63
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_qstylesheetstyle
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+)
index 4177b11..9abadf4 100644 (file)
@@ -157,13 +157,6 @@ void tst_qstylesheetstyle::grid()
     QFETCH(bool, show);
     QFETCH(int, N);
 
-#ifdef Q_OS_SYMBIAN
-    // Symbian has limited stack (max 80k), which will run out when N >= 20 due to
-    // QWidget::show() using recursion among grid labels somewhere down the line.
-    if (show && N >= 20)
-        QSKIP("Grid too big for device to show", SkipSingle);
-#endif
-
     QWidget *w = new QWidget();
     QGridLayout *layout = new QGridLayout(w);
     w->setLayout(layout);
@@ -198,4 +191,4 @@ void tst_qstylesheetstyle::grid()
 
 QTEST_MAIN(tst_qstylesheetstyle)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/gui/styles/qstylesheetstyle/qstylesheetstyle.pro b/tests/benchmarks/gui/styles/qstylesheetstyle/qstylesheetstyle.pro
deleted file mode 100644 (file)
index f4bf9ab..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qstylesheetstyle
-DEPENDPATH += .
-INCLUDEPATH += .
-
-
-CONFIG += release
-
-# Input
-SOURCES += main.cpp
diff --git a/tests/benchmarks/gui/text/qfontmetrics/CMakeLists.txt b/tests/benchmarks/gui/text/qfontmetrics/CMakeLists.txt
new file mode 100644 (file)
index 0000000..24a3add
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_QFontMetrics
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+)
index 90985af..77a0bb6 100644 (file)
@@ -109,4 +109,4 @@ void tst_QFontMetrics::fontmetrics_height_once_loaded()
 
 QTEST_MAIN(tst_QFontMetrics)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/gui/text/qfontmetrics/qfontmetrics.pro b/tests/benchmarks/gui/text/qfontmetrics/qfontmetrics.pro
deleted file mode 100644 (file)
index 973f881..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_QFontMetrics
-
-SOURCES += main.cpp
diff --git a/tests/benchmarks/gui/text/qtext/CMakeLists.txt b/tests/benchmarks/gui/text/qtext/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d966079
--- /dev/null
@@ -0,0 +1,3 @@
+katie_test(tst_bench_QText
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+)
index d7eb2cd..f30780b 100644 (file)
 #include <QTextDocumentWriter>
 #include <QTextLayout>
 #include <QTextCursor>
-#include <private/qtextcontrol_p.h>
+#include <qtextcontrol_p.h>
 #include <qmath.h>
 #include <QFile>
 #include <QPainter>
 #include <QBuffer>
 #include <qtest.h>
 
-#ifdef Q_OS_SYMBIAN
-// In Symbian OS test data is located in applications private dir
-// Application private dir is default serach path for files, so SRCDIR can be set to empty
-#define SRCDIR ""
-#endif
-
 Q_DECLARE_METATYPE(QTextDocument*)
 
 class tst_QText: public QObject
@@ -141,11 +135,7 @@ void tst_QText::shaping_data()
     QTest::newRow("lorem") << m_lorem;
     QTest::newRow("short") << QString::fromLatin1("Lorem ipsum dolor sit amet");
 
-#if !defined(Q_OS_SYMBIAN)
     QFile file(QString::fromLatin1(SRCDIR) + QLatin1String("/bidi.txt"));
-#else
-    QFile file( SRCDIR "bidi.txt" );
-#endif
     QVERIFY(file.open(QFile::ReadOnly));
     QByteArray data = file.readAll();
     QVERIFY(data.count() > 1000);
@@ -497,4 +487,4 @@ void tst_QText::paintControlToPixmap_painterFill()
 
 QTEST_MAIN(tst_QText)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/gui/text/qtext/qtext.pro b/tests/benchmarks/gui/text/qtext/qtext.pro
deleted file mode 100644 (file)
index 1c18302..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_QText
-
-SOURCES += main.cpp
-
-symbian* {
-   TARGET.CAPABILITY = ALL -TCB
-   addFiles.files = bidi.txt
-   addFiles.path = .
-   DEPLOYMENT += addFiles
-} else {
-   DEFINES += SRCDIR=\\\"$$PWD/\\\"
-}
\ No newline at end of file
diff --git a/tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/CMakeLists.txt b/tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/CMakeLists.txt
new file mode 100644 (file)
index 0000000..66694c1
--- /dev/null
@@ -0,0 +1,5 @@
+katie_test(tst_bench_qfile_vs_qnetworkaccessmanager
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+)
+
+target_link_libraries(tst_bench_qfile_vs_qnetworkaccessmanager KtNetwork)
index c709965..83d84ed 100644 (file)
@@ -77,11 +77,7 @@ void qfile_vs_qnetworkaccessmanager::initTestCase()
 {
     testFile.open();
     QByteArray qba(1*1024*1024, 'x'); // 1 MB
-#ifdef Q_OS_SYMBIAN
-    for (int i = 0; i < 10; i++) { // for Symbian only 10 MB
-#else
     for (int i = 0; i < 100; i++) {
-#endif
         testFile.write(qba);
         testFile.flush();
         size += qba.size();
@@ -193,4 +189,4 @@ void qfile_vs_qnetworkaccessmanager::qfileFileRead()
 
 QTEST_MAIN(qfile_vs_qnetworkaccessmanager)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/qfile_vs_qnetworkaccessmanager.pro b/tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/qfile_vs_qnetworkaccessmanager.pro
deleted file mode 100644 (file)
index 0949af7..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qfile_vs_qnetworkaccessmanager
-DEPENDPATH += .
-INCLUDEPATH += .
-
-QT -= gui
-QT += network
-
-CONFIG += release
-
-# Input
-SOURCES += main.cpp
diff --git a/tests/benchmarks/network/access/qnetworkdiskcache/CMakeLists.txt b/tests/benchmarks/network/access/qnetworkdiskcache/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f6247ac
--- /dev/null
@@ -0,0 +1,5 @@
+katie_test(tst_bench_qnetworkdiskcache
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qnetworkdiskcache.cpp
+)
+
+target_link_libraries(tst_bench_qnetworkdiskcache KtNetwork)
diff --git a/tests/benchmarks/network/access/qnetworkdiskcache/qnetworkdiskcache.pro b/tests/benchmarks/network/access/qnetworkdiskcache/qnetworkdiskcache.pro
deleted file mode 100644 (file)
index 7f665b3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qnetworkdiskcache
-DEPENDPATH += .
-INCLUDEPATH += .
-
-QT += gui # for QDesktopServices
-QT += network testlib
-
-CONFIG += release
-
-# Input
-SOURCES += tst_qnetworkdiskcache.cpp
-
-
index cd81903..ca217f3 100644 (file)
@@ -48,7 +48,7 @@
 #include <QtTest/QtTest>
 #include <QIODevice>
 #include <QDesktopServices>
-
+#include <QDirIterator>
 
 
 enum Numbers { NumFakeCacheObjects   = 200,    //entries in pre-populated cache
@@ -111,11 +111,6 @@ void tst_qnetworkdiskcache::timeInsertion_data()
 
     QString cacheLoc = QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
     QTest::newRow("QDesktopServices Cache Location") << cacheLoc;
-#ifdef Q_OS_SYMBIAN
-    if (QDir::drives().contains(QFileInfo("E:\\")))
-        QTest::newRow("Symbian E: drive") << cacheLoc.replace(0, 1, QString("E"));
-#endif
-
 }
 
 //This functions times an insert() operation.
@@ -177,11 +172,6 @@ void tst_qnetworkdiskcache::timeRead_data()
 
     QString cacheLoc = QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
     QTest::newRow("QDesktopServices Cache Location") << cacheLoc;
-#ifdef Q_OS_SYMBIAN
-    if (QDir::drives().contains(QFileInfo("E:\\")))
-        QTest::newRow("Symbian E: drive") << cacheLoc.replace(0, 1, QString("E"));
-#endif
-
 }
 
 //Times metadata as well payload lookup
@@ -241,11 +231,6 @@ void tst_qnetworkdiskcache::timeRemoval_data()
 
     QString cacheLoc = QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
     QTest::newRow("QDesktopServices Cache Location") << cacheLoc;
-#ifdef Q_OS_SYMBIAN
-    if (QDir::drives().contains(QFileInfo("E:\\")))
-        QTest::newRow("Symbian E: drive") << cacheLoc.replace(0, 1, QString("E"));
-#endif
-
 }
 
 void tst_qnetworkdiskcache::timeRemoval()
@@ -296,11 +281,6 @@ void tst_qnetworkdiskcache::timeExpiration_data()
 
     QString cacheLoc = QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
     QTest::newRow("QDesktopServices Cache Location") << cacheLoc;
-#ifdef Q_OS_SYMBIAN
-    if (QDir::drives().contains(QFileInfo("E:\\")))
-        QTest::newRow("Symbian E: drive") << cacheLoc.replace(0, 1, QString("E"));
-#endif
-
 }
 void tst_qnetworkdiskcache::timeExpiration()
 {
@@ -432,4 +412,5 @@ void tst_qnetworkdiskcache::initCacheObject()
 
 }
 QTEST_MAIN(tst_qnetworkdiskcache)
-#include "tst_qnetworkdiskcache.moc"
+
+#include "moc_tst_qnetworkdiskcache.cpp"
diff --git a/tests/benchmarks/network/access/qnetworkreply/CMakeLists.txt b/tests/benchmarks/network/access/qnetworkreply/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ae2507d
--- /dev/null
@@ -0,0 +1,5 @@
+katie_test(tst_bench_qnetworkreply
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qnetworkreply.cpp
+)
+
+target_link_libraries(tst_bench_qnetworkreply KtNetwork)
diff --git a/tests/benchmarks/network/access/qnetworkreply/qnetworkreply.pro b/tests/benchmarks/network/access/qnetworkreply/qnetworkreply.pro
deleted file mode 100644 (file)
index 9d96dc7..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qnetworkreply
-DEPENDPATH += .
-INCLUDEPATH += .
-
-QT -= gui
-QT += network
-
-CONFIG += release
-
-# Input
-SOURCES += tst_qnetworkreply.cpp
index 29b8429..554bd9c 100644 (file)
@@ -41,6 +41,9 @@
 // This file contains benchmarks for QNetworkReply functions.
 
 #include <QDebug>
+#include <QThread>
+#include <QSemaphore>
+#include <QTimer>
 #include <qtest.h>
 #include <QtTest/QtTest>
 #include <QtNetwork/qnetworkreply.h>
@@ -558,7 +561,7 @@ void tst_qnetworkreply::uploadPerformance()
 
 void tst_qnetworkreply::httpUploadPerformance()
 {
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_WINCE_WM)
+#if defined(Q_WS_WINCE_WM)
       // SHow some mercy for non-desktop platform/s
       enum {UploadSize = 4*1024*1024}; // 4 MB
 #else
@@ -629,7 +632,7 @@ void tst_qnetworkreply::httpDownloadPerformance()
 {
     QFETCH(bool, serverSendsContentLength);
     QFETCH(bool, chunkedEncoding);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_WINCE_WM)
+#if defined(Q_WS_WINCE_WM)
     // Show some mercy to non-desktop platform/s
     enum {UploadSize = 4*1024*1024}; // 4 MB
 #else
@@ -713,7 +716,7 @@ void tst_qnetworkreply::httpDownloadPerformanceDownloadBuffer()
     QFETCH(HttpDownloadPerformanceDownloadBufferTestType, testType);
 
     // On my Linux Desktop the results are already visible with 128 kB, however we use this to have good results.
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_WINCE_WM)
+#if defined(Q_WS_WINCE_WM)
     // Show some mercy to non-desktop platform/s
     enum {UploadSize = 4*1024*1024}; // 4 MB
 #else
@@ -741,4 +744,4 @@ void tst_qnetworkreply::httpDownloadPerformanceDownloadBuffer()
 
 QTEST_MAIN(tst_qnetworkreply)
 
-#include "tst_qnetworkreply.moc"
+#include "moc_tst_qnetworkreply.cpp"
diff --git a/tests/benchmarks/network/kernel/qhostinfo/CMakeLists.txt b/tests/benchmarks/network/kernel/qhostinfo/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8c0054c
--- /dev/null
@@ -0,0 +1,5 @@
+katie_test(tst_bench_qhostinfo
+    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
+)
+
+target_link_libraries(tst_bench_qhostinfo KtNetwork)
index 2ce135c..3048fc1 100644 (file)
@@ -48,7 +48,7 @@
 #include <qtest.h>
 #include <qtesteventloop.h>
 
-#include "private/qhostinfo_p.h"
+#include "qhostinfo_p.h"
 
 class tst_qhostinfo : public QObject
 {
@@ -117,4 +117,4 @@ void tst_qhostinfo::lookupSpeed()
 
 QTEST_MAIN(tst_qhostinfo)
 
-#include "main.moc"
+#include "moc_main.cpp"
diff --git a/tests/benchmarks/network/kernel/qhostinfo/qhostinfo.pro b/tests/benchmarks/network/kernel/qhostinfo/qhostinfo.pro
deleted file mode 100644 (file)
index b242d60..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qhostinfo
-DEPENDPATH += .
-INCLUDEPATH += .
-
-QT -= gui
-QT += network
-
-CONFIG += release
-
-# Input
-SOURCES += main.cpp
-
-symbian: {
-    TARGET.CAPABILITY = NetworkServices
-    INCLUDEPATH *= $$MW_LAYER_SYSTEMINCLUDE
-}
diff --git a/tests/benchmarks/network/socket/qtcpserver/CMakeLists.txt b/tests/benchmarks/network/socket/qtcpserver/CMakeLists.txt
new file mode 100644 (file)
index 0000000..81567d1
--- /dev/null
@@ -0,0 +1,5 @@
+katie_test(tst_bench_qtcpserver
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qtcpserver.cpp
+)
+
+target_link_libraries(tst_bench_qtcpserver KtNetwork)
diff --git a/tests/benchmarks/network/socket/qtcpserver/qtcpserver.pro b/tests/benchmarks/network/socket/qtcpserver/qtcpserver.pro
deleted file mode 100644 (file)
index 30b10d2..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qtcpserver
-DEPENDPATH += .
-INCLUDEPATH += .
-
-QT -= gui
-QT += network
-
-CONFIG += release
-
-# Input
-SOURCES += tst_qtcpserver.cpp
-
-symbian: {
-    TARGET.CAPABILITY = NetworkServices
-    INCLUDEPATH *= $$MW_LAYER_SYSTEMINCLUDE
-}
index c518ddd..cfd4dcd 100644 (file)
@@ -64,9 +64,6 @@ Q_DECLARE_METATYPE(QList<QNetworkProxy>)
 
 #include "../../../../auto/network-settings.h"
 
-//TESTED_CLASS=
-//TESTED_FILES=
-
 class tst_QTcpServer : public QObject
 {
     Q_OBJECT
@@ -310,4 +307,5 @@ void tst_QTcpServer::ipv4PerformanceTest()
 }
 
 QTEST_MAIN(tst_QTcpServer)
-#include "tst_qtcpserver.moc"
+
+#include "moc_tst_qtcpserver.cpp"
diff --git a/tests/benchmarks/network/ssl/qsslsocket/CMakeLists.txt b/tests/benchmarks/network/ssl/qsslsocket/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0489707
--- /dev/null
@@ -0,0 +1,5 @@
+katie_test(tst_bench_qsslsocket
+    ${CMAKE_CURRENT_SOURCE_DIR}/tst_qsslsocket.cpp
+)
+
+target_link_libraries(tst_bench_qsslsocket KtNetwork)
diff --git a/tests/benchmarks/network/ssl/qsslsocket/qsslsocket.pro b/tests/benchmarks/network/ssl/qsslsocket/qsslsocket.pro
deleted file mode 100644 (file)
index 85ca1e3..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-load(qttest_p4)
-TEMPLATE = app
-TARGET = tst_bench_qsslsocket
-DEPENDPATH += .
-INCLUDEPATH += .
-
-QT -= gui
-QT += network
-
-CONFIG += release
-
-# Input
-SOURCES += tst_qsslsocket.cpp
-
-symbian: {
-    TARGET.CAPABILITY = NetworkServices
-    INCLUDEPATH *= $$MW_LAYER_SYSTEMINCLUDE
-}
index a2ee711..9d1281c 100644 (file)
@@ -111,4 +111,5 @@ void tst_QSslSocket::systemCaCertificates()
 }
 
 QTEST_MAIN(tst_QSslSocket)
-#include "tst_qsslsocket.moc"
+
+#include "moc_tst_qsslsocket.cpp"
index 983514f..fc3e849 100644 (file)
@@ -488,13 +488,8 @@ void tst_QScriptEngine::nativeCall()
     newEngine();
     m_engine->globalObject().setProperty("fun", m_engine->newFunction(native_function));
     QBENCHMARK{
-#if !defined(Q_OS_SYMBIAN)
-        m_engine->evaluate("var w = 0; for (i = 0; i < 100000; ++i) {\n"
-                     "  w += fun() + fun(); w -= fun(); fun(); w -= fun(); }");
-#else
         m_engine->evaluate("var w = 0; for (i = 0; i < 25000; ++i) {\n"
                      "  w += fun() + fun(); w -= fun(); fun(); w -= fun(); }");
-#endif
     }
 }