aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt60
-rw-r--r--tests/QtCore/CMakeLists.txt71
-rw-r--r--tests/QtCore/blocking_signals_test.py (renamed from tests/qtcore/blocking_signals_test.py)0
-rw-r--r--tests/QtCore/buffer_test.py (renamed from tests/qtcore/buffer_test.py)0
-rw-r--r--tests/QtCore/child_event_test.py (renamed from tests/qtcore/child_event_test.py)0
-rw-r--r--tests/QtCore/deletelater_test.py (renamed from tests/qtcore/deletelater_test.py)0
-rw-r--r--tests/QtCore/duck_punching_test.py (renamed from tests/qtcore/duck_punching_test.py)0
-rw-r--r--tests/QtCore/missing_symbols_test.py (renamed from tests/qtcore/missing_symbols_test.py)0
-rw-r--r--tests/QtCore/qabs_test.py (renamed from tests/qtcore/qabs_test.py)0
-rw-r--r--tests/QtCore/qabstracttransition_test.py (renamed from tests/qtcore/qabstracttransition_test.py)0
-rw-r--r--tests/QtCore/qanimationgroup_test.py (renamed from tests/qtcore/qanimationgroup_test.py)0
-rwxr-xr-xtests/QtCore/qbitarray_test.py (renamed from tests/qtcore/qbitarray_test.py)0
-rwxr-xr-xtests/QtCore/qbytearray_buffer_protocol_test.py (renamed from tests/qtcore/qbytearray_buffer_protocol_test.py)0
-rwxr-xr-xtests/QtCore/qbytearray_concatenation_operator_test.py (renamed from tests/qtcore/qbytearray_concatenation_operator_test.py)0
-rw-r--r--tests/QtCore/qbytearray_operator_iadd_test.py (renamed from tests/qtcore/qbytearray_operator_iadd_test.py)0
-rw-r--r--tests/QtCore/qbytearray_operator_test.py (renamed from tests/qtcore/qbytearray_operator_test.py)0
-rw-r--r--tests/QtCore/qbytearray_test.py (renamed from tests/qtcore/qbytearray_test.py)0
-rw-r--r--tests/QtCore/qchar_test.py (renamed from tests/qtcore/qchar_test.py)0
-rwxr-xr-xtests/QtCore/qcoreapplication_instance_test.py (renamed from tests/qtcore/qcoreapplication_instance_test.py)0
-rw-r--r--tests/QtCore/qdatastream_test.py (renamed from tests/qtcore/qdatastream_test.py)0
-rw-r--r--tests/QtCore/qdate_test.py (renamed from tests/qtcore/qdate_test.py)0
-rw-r--r--tests/QtCore/qenum_test.py (renamed from tests/qtcore/qenum_test.py)0
-rw-r--r--tests/QtCore/qevent_test.py (renamed from tests/qtcore/qevent_test.py)0
-rw-r--r--tests/QtCore/qfile_test.py (renamed from tests/qtcore/qfile_test.py)0
-rw-r--r--tests/QtCore/qfileinfo_test.py (renamed from tests/qtcore/qfileinfo_test.py)0
-rw-r--r--tests/QtCore/qflags_test.py (renamed from tests/qtcore/qflags_test.py)0
-rw-r--r--tests/QtCore/qhandle_test.py (renamed from tests/qtcore/qhandle_test.py)0
-rw-r--r--tests/QtCore/qlatin1string_test.py (renamed from tests/qtcore/qlatin1string_test.py)0
-rw-r--r--tests/QtCore/qlinef_test.py (renamed from tests/qtcore/qlinef_test.py)0
-rw-r--r--tests/QtCore/qlocale_test.py (renamed from tests/qtcore/qlocale_test.py)0
-rw-r--r--tests/QtCore/qmetaobject_test.py (renamed from tests/qtcore/qmetaobject_test.py)0
-rw-r--r--tests/QtCore/qmodelindex_internalpointer_test.py (renamed from tests/qtcore/qmodelindex_internalpointer_test.py)0
-rw-r--r--tests/QtCore/qobject_children_segfault_test.py (renamed from tests/qtcore/qobject_children_segfault_test.py)0
-rw-r--r--tests/QtCore/qobject_connect_notify_test.py (renamed from tests/qtcore/qobject_connect_notify_test.py)0
-rw-r--r--tests/QtCore/qobject_event_filter_test.py (renamed from tests/qtcore/qobject_event_filter_test.py)0
-rw-r--r--tests/QtCore/qobject_inherits_test.py (renamed from tests/qtcore/qobject_inherits_test.py)0
-rw-r--r--tests/QtCore/qobject_parent_test.py (renamed from tests/qtcore/qobject_parent_test.py)0
-rw-r--r--tests/QtCore/qobject_property_test.py (renamed from tests/qtcore/qobject_property_test.py)0
-rw-r--r--tests/QtCore/qobject_protected_methods_test.py (renamed from tests/qtcore/qobject_protected_methods_test.py)0
-rw-r--r--tests/QtCore/qobject_test.py (renamed from tests/qtcore/qobject_test.py)0
-rw-r--r--tests/QtCore/qobject_timer_event_test.py (renamed from tests/qtcore/qobject_timer_event_test.py)0
-rw-r--r--tests/QtCore/qobject_tr_as_instance_test.py (renamed from tests/qtcore/qobject_tr_as_instance_test.py)0
-rw-r--r--tests/QtCore/qpoint_test.py (renamed from tests/qtcore/qpoint_test.py)0
-rw-r--r--tests/QtCore/qprocess_test.py (renamed from tests/qtcore/qprocess_test.py)0
-rw-r--r--tests/QtCore/qrect_test.py (renamed from tests/qtcore/qrect_test.py)0
-rw-r--r--tests/QtCore/qresource_test.py (renamed from tests/qtcore/qresource_test.py)0
-rw-r--r--tests/QtCore/qsize_test.py (renamed from tests/qtcore/qsize_test.py)0
-rw-r--r--tests/QtCore/qslot_object_test.py (renamed from tests/qtcore/qslot_object_test.py)0
-rw-r--r--tests/QtCore/qsrand_test.py (renamed from tests/qtcore/qsrand_test.py)0
-rw-r--r--tests/QtCore/qstate_test.py (renamed from tests/qtcore/qstate_test.py)0
-rw-r--r--tests/QtCore/qstatemachine_test.py (renamed from tests/qtcore/qstatemachine_test.py)0
-rwxr-xr-xtests/QtCore/qstring_buffer_protocol_test.py (renamed from tests/qtcore/qstring_buffer_protocol_test.py)0
-rw-r--r--tests/QtCore/qstring_operator_test.py (renamed from tests/qtcore/qstring_operator_test.py)0
-rw-r--r--tests/QtCore/qstring_test.py (renamed from tests/qtcore/qstring_test.py)0
-rw-r--r--tests/QtCore/qstringlist_test.py (renamed from tests/qtcore/qstringlist_test.py)0
-rw-r--r--tests/QtCore/qtext_codec_test.py (renamed from tests/qtcore/qtext_codec_test.py)0
-rw-r--r--tests/QtCore/qtextstream_test.py (renamed from tests/qtcore/qtextstream_test.py)0
-rw-r--r--tests/QtCore/qthread_prod_cons_test.py (renamed from tests/qtcore/qthread_prod_cons_test.py)0
-rwxr-xr-xtests/QtCore/qthread_signal_test.py (renamed from tests/qtcore/qthread_signal_test.py)0
-rw-r--r--tests/QtCore/qthread_test.py (renamed from tests/qtcore/qthread_test.py)0
-rw-r--r--tests/QtCore/qtimer_singleshot_test.py (renamed from tests/qtcore/qtimer_singleshot_test.py)0
-rw-r--r--tests/QtCore/qtimer_timeout_test.py (renamed from tests/qtcore/qtimer_timeout_test.py)0
-rw-r--r--tests/QtCore/qtnamespace_test.py (renamed from tests/qtcore/qtnamespace_test.py)0
-rw-r--r--tests/QtCore/quoteEnUS.txt (renamed from tests/qtcore/quoteEnUS.txt)0
-rw-r--r--tests/QtCore/qurl_test.py (renamed from tests/qtcore/qurl_test.py)0
-rw-r--r--tests/QtCore/qvariant_pyobject_test.py (renamed from tests/qtcore/qvariant_pyobject_test.py)0
-rw-r--r--tests/QtCore/qvariant_test.py (renamed from tests/qtcore/qvariant_test.py)0
-rw-r--r--tests/QtCore/resources.qrc (renamed from tests/qtcore/resources.qrc)0
-rw-r--r--tests/QtCore/resources_mc.py (renamed from tests/qtcore/resources_mc.py)0
-rwxr-xr-xtests/QtCore/static_method_test.py (renamed from tests/qtcore/static_method_test.py)0
-rw-r--r--tests/QtCore/static_protected_methods_test.py (renamed from tests/qtcore/static_protected_methods_test.py)0
-rw-r--r--tests/QtCore/thread_signals.py (renamed from tests/qtcore/thread_signals.py)14
-rw-r--r--tests/QtCore/translation_test.py (renamed from tests/qtcore/translation_test.py)0
-rw-r--r--tests/QtCore/translations/trans_latin.ts (renamed from tests/qtcore/translations/trans_latin.ts)0
-rw-r--r--tests/QtCore/translations/trans_russian.ts (renamed from tests/qtcore/translations/trans_russian.ts)0
-rwxr-xr-xtests/QtCore/unaryoperator_test.py (renamed from tests/qtcore/unaryoperator_test.py)0
-rw-r--r--tests/QtCore/unicode_test.py (renamed from tests/qtcore/unicode_test.py)0
-rw-r--r--tests/QtDeclarative/CMakeLists.txt2
-rw-r--r--tests/QtDeclarative/network.qml (renamed from tests/qtdeclarative/network.qml)0
-rw-r--r--tests/QtDeclarative/qdeclarativenetwork_test.py (renamed from tests/qtdeclarative/qdeclarativenetwork_test.py)0
-rw-r--r--tests/QtDeclarative/qdeclarativeview_test.py (renamed from tests/qtdeclarative/qdeclarativeview_test.py)0
-rw-r--r--tests/QtDeclarative/view.qml (renamed from tests/qtdeclarative/view.qml)0
-rw-r--r--tests/QtGui/CMakeLists.txt58
-rw-r--r--tests/QtGui/add_action_test.py (renamed from tests/qtgui/add_action_test.py)0
-rwxr-xr-xtests/QtGui/customproxywidget_test.py (renamed from tests/qtgui/customproxywidget_test.py)0
-rw-r--r--tests/QtGui/float_to_int_implicit_conversion_test.py (renamed from tests/qtgui/float_to_int_implicit_conversion_test.py)0
-rw-r--r--tests/QtGui/grandparent_method_test.py (renamed from tests/qtgui/grandparent_method_test.py)0
-rw-r--r--tests/QtGui/hashabletype_test.py (renamed from tests/qtgui/hashabletype_test.py)0
-rwxr-xr-xtests/QtGui/keep_reference_test.py (renamed from tests/qtgui/keep_reference_test.py)0
-rw-r--r--tests/QtGui/missing_symbols_test.py (renamed from tests/qtgui/missing_symbols_test.py)0
-rw-r--r--tests/QtGui/paint_event_test.py (renamed from tests/qtgui/paint_event_test.py)0
-rw-r--r--tests/QtGui/parent_method_test.py (renamed from tests/qtgui/parent_method_test.py)0
-rw-r--r--tests/QtGui/python_properties_test.py (renamed from tests/qtgui/python_properties_test.py)0
-rw-r--r--tests/QtGui/qapp_test.py (renamed from tests/qtgui/qapp_test.py)0
-rw-r--r--tests/QtGui/qapplication_exit_segfault_test.py (renamed from tests/qtgui/qapplication_exit_segfault_test.py)0
-rw-r--r--tests/QtGui/qapplication_singleton_test.py (renamed from tests/qtgui/qapplication_singleton_test.py)0
-rw-r--r--tests/QtGui/qbrush_test.py (renamed from tests/qtgui/qbrush_test.py)0
-rw-r--r--tests/QtGui/qcolor_test.py (renamed from tests/qtgui/qcolor_test.py)0
-rw-r--r--tests/QtGui/qdatastream_gui_operators_test.py (renamed from tests/qtgui/qdatastream_gui_operators_test.py)0
-rw-r--r--tests/QtGui/qfontdialog_test.py (renamed from tests/qtgui/qfontdialog_test.py)0
-rw-r--r--tests/QtGui/qfontmetrics_test.py (renamed from tests/qtgui/qfontmetrics_test.py)0
-rwxr-xr-xtests/QtGui/qgraphicsitem_isblocked_test.py (renamed from tests/qtgui/qgraphicsitem_isblocked_test.py)0
-rw-r--r--tests/QtGui/qgraphicsitem_test.py (renamed from tests/qtgui/qgraphicsitem_test.py)0
-rwxr-xr-xtests/QtGui/qgraphicsproxywidget_test.py (renamed from tests/qtgui/qgraphicsproxywidget_test.py)0
-rw-r--r--tests/QtGui/qgraphicsscene_test.py (renamed from tests/qtgui/qgraphicsscene_test.py)0
-rw-r--r--tests/QtGui/qinputdialog_get_test.py (renamed from tests/qtgui/qinputdialog_get_test.py)0
-rw-r--r--tests/QtGui/qitemselection_test.py (renamed from tests/qtgui/qitemselection_test.py)0
-rw-r--r--tests/QtGui/qlayout_ref_test.py (renamed from tests/qtgui/qlayout_ref_test.py)0
-rw-r--r--tests/QtGui/qlayout_test.py (renamed from tests/qtgui/qlayout_test.py)0
-rw-r--r--tests/QtGui/qlcdnumber_test.py (renamed from tests/qtgui/qlcdnumber_test.py)0
-rw-r--r--tests/QtGui/qlistwidgetitem_test.py (renamed from tests/qtgui/qlistwidgetitem_test.py)0
-rw-r--r--tests/QtGui/qmainwindow_test.py (renamed from tests/qtgui/qmainwindow_test.py)0
-rw-r--r--tests/QtGui/qmatrix_test.py (renamed from tests/qtgui/qmatrix_test.py)0
-rw-r--r--tests/QtGui/qmenu_test.py (renamed from tests/qtgui/qmenu_test.py)0
-rw-r--r--tests/QtGui/qmenuadd_test.py (renamed from tests/qtgui/qmenuadd_test.py)0
-rw-r--r--tests/QtGui/qobject_mi_test.py (renamed from tests/qtgui/qobject_mi_test.py)0
-rw-r--r--tests/QtGui/qpainter_test.py (renamed from tests/qtgui/qpainter_test.py)0
-rw-r--r--tests/QtGui/qpen_test.py (renamed from tests/qtgui/qpen_test.py)0
-rw-r--r--tests/QtGui/qpixmap_test.py (renamed from tests/qtgui/qpixmap_test.py)0
-rw-r--r--tests/QtGui/qpushbutton_test.py (renamed from tests/qtgui/qpushbutton_test.py)0
-rw-r--r--tests/QtGui/qradialgradient_test.py (renamed from tests/qtgui/qradialgradient_test.py)0
-rw-r--r--tests/QtGui/qregion_test.py (renamed from tests/qtgui/qregion_test.py)0
-rw-r--r--tests/QtGui/qshortcut_test.py (renamed from tests/qtgui/qshortcut_test.py)0
-rw-r--r--tests/QtGui/qstandarditemmodel_test.py (renamed from tests/qtgui/qstandarditemmodel_test.py)0
-rw-r--r--tests/QtGui/qstring_qkeysequence_test.py (renamed from tests/qtgui/qstring_qkeysequence_test.py)0
-rwxr-xr-xtests/QtGui/qstyle_test.py (renamed from tests/qtgui/qstyle_test.py)0
-rw-r--r--tests/QtGui/qtableview_test.py (renamed from tests/qtgui/qtableview_test.py)0
-rw-r--r--tests/QtGui/qtabwidget_test.py (renamed from tests/qtgui/qtabwidget_test.py)0
-rw-r--r--tests/QtGui/qtextedit_test.py (renamed from tests/qtgui/qtextedit_test.py)0
-rw-r--r--tests/QtGui/qtoolbar_test.py (renamed from tests/qtgui/qtoolbar_test.py)0
-rw-r--r--tests/QtGui/qtoolbox_test.py (renamed from tests/qtgui/qtoolbox_test.py)0
-rw-r--r--tests/QtGui/qvariant_test.py (renamed from tests/qtgui/qvariant_test.py)0
-rw-r--r--tests/QtGui/qwidget_setlayout_test.py (renamed from tests/qtgui/qwidget_setlayout_test.py)0
-rw-r--r--tests/QtGui/qwidget_test.py (renamed from tests/qtgui/qwidget_test.py)0
-rw-r--r--tests/QtGui/reference_count_test.py (renamed from tests/qtgui/reference_count_test.py)0
-rw-r--r--tests/QtGui/sample.png (renamed from tests/qtgui/sample.png)bin55944 -> 55944 bytes
-rw-r--r--tests/QtGui/standardpixmap_test.py (renamed from tests/qtgui/standardpixmap_test.py)0
-rw-r--r--tests/QtGui/timed_app_test.py (renamed from tests/qtgui/timed_app_test.py)0
-rw-r--r--tests/QtGui/virtual_protected_inheritance_test.py (renamed from tests/qtgui/virtual_protected_inheritance_test.py)0
-rw-r--r--tests/QtGui/virtual_pure_override.py (renamed from tests/qtgui/virtual_pure_override.py)0
-rw-r--r--tests/QtGui/wrong_return_test.py (renamed from tests/qtgui/wrong_return_test.py)0
-rw-r--r--tests/QtGui/x11_symbols.py (renamed from tests/qtgui/x11_symbols.py)0
-rw-r--r--tests/QtHelp/CMakeLists.txt1
-rw-r--r--tests/QtHelp/help_test.py (renamed from tests/qthelp/help_test.py)0
-rw-r--r--tests/QtMaemo5/CMakeLists.txt2
-rw-r--r--tests/QtMaemo5/pickselector_test.py (renamed from tests/qtmaemo5/pickselector_test.py)0
-rw-r--r--tests/QtMaemo5/qmaemo5import_test.py (renamed from tests/qtmaemo5/qmaemo5import_test.py)0
-rw-r--r--tests/QtMultimedia/CMakeLists.txt1
-rw-r--r--tests/QtMultimedia/audio_test.py (renamed from tests/qtmultimedia/audio_test.py)0
-rw-r--r--tests/QtNetwork/CMakeLists.txt4
-rw-r--r--tests/QtNetwork/accessManager_test.py (renamed from tests/qtnetwork/accessManager_test.py)0
-rw-r--r--tests/QtNetwork/http_test.py (renamed from tests/qtnetwork/http_test.py)0
-rw-r--r--tests/QtNetwork/tcpserver_test.py (renamed from tests/qtnetwork/tcpserver_test.py)0
-rw-r--r--tests/QtNetwork/udpsocket_test.py (renamed from tests/qtnetwork/udpsocket_test.py)0
-rw-r--r--tests/QtOpenGL/CMakeLists.txt3
-rw-r--r--tests/QtOpenGL/qglbuffer_test.py (renamed from tests/qtopengl/qglbuffer_test.py)0
-rw-r--r--tests/QtScript/CMakeLists.txt3
-rw-r--r--tests/QtScript/base_test.py (renamed from tests/qtscript/base_test.py)0
-rw-r--r--tests/QtScript/engine_test.py (renamed from tests/qtscript/engine_test.py)0
-rw-r--r--tests/QtScript/test_base.py (renamed from tests/qtscript/test_base.py)0
-rw-r--r--tests/QtScriptTools/CMakeLists.txt1
-rw-r--r--tests/QtScriptTools/debugger_test.py (renamed from tests/qtscripttools/debugger_test.py)0
-rw-r--r--tests/QtSql/CMakeLists.txt1
-rwxr-xr-xtests/QtSql/qsqldatabaseandqueries_test.py (renamed from tests/qtsql/qsqldatabaseandqueries_test.py)0
-rw-r--r--tests/QtSvg/CMakeLists.txt1
-rw-r--r--tests/QtSvg/qsvggenerator_test.py (renamed from tests/qtsvg/qsvggenerator_test.py)0
-rw-r--r--tests/QtTest/CMakeLists.txt2
-rw-r--r--tests/QtTest/click_test.py (renamed from tests/qttest/click_test.py)0
-rw-r--r--tests/QtTest/eventfilter_test.py (renamed from tests/qttest/eventfilter_test.py)0
-rw-r--r--tests/QtUiTools/CMakeLists.txt2
-rw-r--r--tests/QtUiTools/test.ui (renamed from tests/qtuitools/test.ui)0
-rw-r--r--tests/QtUiTools/ui_test.py (renamed from tests/qtuitools/ui_test.py)0
-rw-r--r--tests/QtUiTools/uiloader_test.py (renamed from tests/qtuitools/uiloader_test.py)0
-rw-r--r--tests/QtWebKit/CMakeLists.txt2
-rw-r--r--tests/QtWebKit/fox.html (renamed from tests/qtwebkit/fox.html)0
-rw-r--r--tests/QtWebKit/webpage_test.py (renamed from tests/qtwebkit/webpage_test.py)0
-rw-r--r--tests/QtWebKit/webview_test.py (renamed from tests/qtwebkit/webview_test.py)0
-rw-r--r--tests/QtXml/CMakeLists.txt2
-rw-r--r--tests/QtXml/qdomdocument_test.py (renamed from tests/qtxml/qdomdocument_test.py)0
-rw-r--r--tests/QtXml/qxmlsimplereader_test.py (renamed from tests/qtxml/qxmlsimplereader_test.py)0
-rw-r--r--tests/QtXmlPatterns/CMakeLists.txt1
-rw-r--r--tests/QtXmlPatterns/import_test.py (renamed from tests/qtxmlpatterns/import_test.py)0
-rw-r--r--tests/phonon/CMakeLists.txt2
-rw-r--r--tests/qtgui/qlabel_pixmap_refcount.py46
-rwxr-xr-xtests/run_test.sh8
-rw-r--r--tests/signals/CMakeLists.txt32
-rwxr-xr-x[-rw-r--r--]tests/signals/args_dont_match_test.py1
-rwxr-xr-x[-rw-r--r--]tests/signals/decorators_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/invalid_callback_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/lambda_gui_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/lambda_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/multiple_connections_gui_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/multiple_connections_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/pysignal_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/qobject_destroyed_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/qobject_receivers_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/segfault_proxyparent_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/self_connect_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/short_circuit_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal2signal_connect_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal_autoconnect_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal_connectiontype_support.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal_emission_gui_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal_emission_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal_func_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal_manager_refcount_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal_object_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/signal_with_primitive_type_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/slot_reference_count_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/static_metaobject_test.py0
-rwxr-xr-x[-rw-r--r--]tests/signals/upstream_segfault_test.py0
211 files changed, 241 insertions, 79 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index ada5b7ae3..d87414fda 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,22 +1,44 @@
+set(PYSIDE_TIMEOUT 5)
-file(GLOB TEST_FILES */*_test.py)
+macro(TEST_QT_MODULE var name)
+ if(NOT DISABLE_${name} AND ${var})
+ add_subdirectory(${name})
+ endif()
+endmacro(TEST_QT_MODULE)
-set(test_blacklist )
+macro(PYSIDE_TEST)
+ set(TEST_NAME ${ARGV0})
+ if (${ARGC} EQUAL 1)
+ set(EXPECT_TO_FAIL 0)
+ elseif(${ARGC} EQUAL 2)
+ set(EXPECT_TO_FAIL ${ARGV1})
+ else()
+ message(WARNING "Ivalid call of macro PYSIDE_TEST")
+ endif()
+ set(TEST_CMD ${CMAKE_SOURCE_DIR}/tests/run_test.sh ${CMAKE_BINARY_DIR} "${CMAKE_BINARY_DIR}:${CMAKE_SOURCE_DIR}/tests/util" ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}")
+ add_test(${TEST_NAME} ${TEST_CMD})
+ set_tests_properties(${TEST_NAME} PROPERTIES
+ TIMEOUT ${PYSIDE_TIMEOUT}
+ WILL_FAIL ${EXPECT_TO_FAIL})
+endmacro(PYSIDE_TEST)
-foreach(test_file ${TEST_FILES})
- string(REGEX MATCH "/([^/]+)//?([^/]+)_test.py" test_name ${test_file} )
- list(FIND test_blacklist ${CMAKE_MATCH_1}_${CMAKE_MATCH_2} expect_fail)
- add_test(${CMAKE_MATCH_1}_${CMAKE_MATCH_2} sh
- ${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh
- "${pysidebase_BINARY_DIR}:${libpyside_BINARY_DIR}"
- "${CMAKE_BINARY_DIR}:${CMAKE_CURRENT_SOURCE_DIR}/util"
- ${PYTHON_EXECUTABLE}
- ${test_file})
- set_tests_properties(${CMAKE_MATCH_1}_${CMAKE_MATCH_2} PROPERTIES TIMEOUT 5)
- if (${expect_fail} GREATER -1)
- set_tests_properties(${CMAKE_MATCH_1}_${CMAKE_MATCH_2} PROPERTIES WILL_FAIL TRUE)
- endif(${expect_fail} GREATER -1)
-# Should set python path here
-# Looks like it's fixed in 2.8:
-# http://www.vtk.org/Bug/print_bug_page.php?bug_id=7885
-endforeach(test_file ${TEST_FILES})
+
+add_subdirectory(signals)
+TEST_QT_MODULE(QT_QTCORE_FOUND QtCore)
+TEST_QT_MODULE(QT_QTGUI_FOUND QtGui)
+TEST_QT_MODULE(QT_QTNETWORK_FOUND QtNetwork)
+TEST_QT_MODULE(QT_QTWEBKIT_FOUND QtWebKit)
+TEST_QT_MODULE(QT_QTSVG_FOUND QtSvg)
+TEST_QT_MODULE(QT_QTXML_FOUND QtXml)
+TEST_QT_MODULE(QT_QTTEST_FOUND QtTest)
+TEST_QT_MODULE(QT_QTOPENGL_FOUND QtOpenGL)
+TEST_QT_MODULE(QT_QTSQL_FOUND QtSql)
+TEST_QT_MODULE(QT_QTUITOOLS_FOUND QtUiTools)
+TEST_QT_MODULE(QT_QTHELP_FOUND QtHelp)
+TEST_QT_MODULE(QT_QTXMLPATTERNS_FOUND QtXmlPatterns)
+TEST_QT_MODULE(QT_QTMAEMO5_FOUND QtMaemo5)
+TEST_QT_MODULE(QT_QTSCRIPT_FOUND QtScript)
+TEST_QT_MODULE(QT_QTSCRIPTTOOLS_FOUND QtScriptTools)
+TEST_QT_MODULE(QT_QTMULTIMEDIA_FOUND QtMultimedia)
+TEST_QT_MODULE(QT_PHONON_FOUND phonon)
+TEST_QT_MODULE(QT_QTDECLARATIVE_FOUND QtDeclarative)
diff --git a/tests/QtCore/CMakeLists.txt b/tests/QtCore/CMakeLists.txt
new file mode 100644
index 000000000..536d40861
--- /dev/null
+++ b/tests/QtCore/CMakeLists.txt
@@ -0,0 +1,71 @@
+PYSIDE_TEST(blocking_signals_test.py)
+PYSIDE_TEST(buffer_test.py)
+PYSIDE_TEST(child_event_test.py)
+PYSIDE_TEST(deletelater_test.py)
+PYSIDE_TEST(duck_punching_test.py)
+PYSIDE_TEST(missing_symbols_test.py)
+PYSIDE_TEST(qabs_test.py)
+PYSIDE_TEST(qabstracttransition_test.py)
+PYSIDE_TEST(qanimationgroup_test.py)
+PYSIDE_TEST(qbitarray_test.py)
+PYSIDE_TEST(qbytearray_buffer_protocol_test.py)
+PYSIDE_TEST(qbytearray_concatenation_operator_test.py)
+PYSIDE_TEST(qbytearray_operator_iadd_test.py)
+PYSIDE_TEST(qbytearray_operator_test.py)
+PYSIDE_TEST(qbytearray_test.py)
+PYSIDE_TEST(qchar_test.py)
+PYSIDE_TEST(qcoreapplication_instance_test.py)
+PYSIDE_TEST(qdatastream_test.py)
+PYSIDE_TEST(qdate_test.py)
+PYSIDE_TEST(qenum_test.py)
+PYSIDE_TEST(qevent_test.py)
+PYSIDE_TEST(qfileinfo_test.py)
+PYSIDE_TEST(qfile_test.py)
+PYSIDE_TEST(qflags_test.py)
+PYSIDE_TEST(qhandle_test.py)
+PYSIDE_TEST(qlatin1string_test.py)
+PYSIDE_TEST(qlinef_test.py)
+PYSIDE_TEST(qlocale_test.py)
+PYSIDE_TEST(qmetaobject_test.py)
+PYSIDE_TEST(qmodelindex_internalpointer_test.py)
+PYSIDE_TEST(qobject_children_segfault_test.py)
+PYSIDE_TEST(qobject_connect_notify_test.py)
+PYSIDE_TEST(qobject_event_filter_test.py)
+PYSIDE_TEST(qobject_inherits_test.py)
+PYSIDE_TEST(qobject_parent_test.py)
+PYSIDE_TEST(qobject_property_test.py)
+PYSIDE_TEST(qobject_protected_methods_test.py)
+PYSIDE_TEST(qobject_test.py)
+PYSIDE_TEST(qobject_timer_event_test.py)
+PYSIDE_TEST(qobject_tr_as_instance_test.py)
+PYSIDE_TEST(qpoint_test.py)
+PYSIDE_TEST(qprocess_test.py)
+PYSIDE_TEST(qrect_test.py)
+PYSIDE_TEST(qresource_test.py)
+PYSIDE_TEST(qsize_test.py)
+PYSIDE_TEST(qslot_object_test.py)
+PYSIDE_TEST(qsrand_test.py)
+PYSIDE_TEST(qstatemachine_test.py)
+PYSIDE_TEST(qstate_test.py)
+PYSIDE_TEST(qstring_buffer_protocol_test.py)
+PYSIDE_TEST(qstringlist_test.py)
+PYSIDE_TEST(qstring_operator_test.py)
+PYSIDE_TEST(qstring_test.py)
+PYSIDE_TEST(qtext_codec_test.py)
+PYSIDE_TEST(qtextstream_test.py)
+PYSIDE_TEST(qthread_prod_cons_test.py)
+PYSIDE_TEST(qthread_signal_test.py)
+PYSIDE_TEST(qthread_test.py)
+PYSIDE_TEST(qtimer_singleshot_test.py)
+PYSIDE_TEST(qtimer_timeout_test.py)
+PYSIDE_TEST(qtnamespace_test.py)
+PYSIDE_TEST(qurl_test.py)
+PYSIDE_TEST(qvariant_pyobject_test.py)
+PYSIDE_TEST(qvariant_test.py)
+PYSIDE_TEST(resources_mc.py)
+PYSIDE_TEST(static_method_test.py)
+PYSIDE_TEST(static_protected_methods_test.py)
+PYSIDE_TEST(thread_signals.py)
+PYSIDE_TEST(translation_test.py)
+PYSIDE_TEST(unaryoperator_test.py)
+PYSIDE_TEST(unicode_test.py)
diff --git a/tests/qtcore/blocking_signals_test.py b/tests/QtCore/blocking_signals_test.py
index 96582f6cc..96582f6cc 100644
--- a/tests/qtcore/blocking_signals_test.py
+++ b/tests/QtCore/blocking_signals_test.py
diff --git a/tests/qtcore/buffer_test.py b/tests/QtCore/buffer_test.py
index 2917232a1..2917232a1 100644
--- a/tests/qtcore/buffer_test.py
+++ b/tests/QtCore/buffer_test.py
diff --git a/tests/qtcore/child_event_test.py b/tests/QtCore/child_event_test.py
index ccc27c848..ccc27c848 100644
--- a/tests/qtcore/child_event_test.py
+++ b/tests/QtCore/child_event_test.py
diff --git a/tests/qtcore/deletelater_test.py b/tests/QtCore/deletelater_test.py
index 3b2f7d9e3..3b2f7d9e3 100644
--- a/tests/qtcore/deletelater_test.py
+++ b/tests/QtCore/deletelater_test.py
diff --git a/tests/qtcore/duck_punching_test.py b/tests/QtCore/duck_punching_test.py
index e20c0c1b1..e20c0c1b1 100644
--- a/tests/qtcore/duck_punching_test.py
+++ b/tests/QtCore/duck_punching_test.py
diff --git a/tests/qtcore/missing_symbols_test.py b/tests/QtCore/missing_symbols_test.py
index f535c53d3..f535c53d3 100644
--- a/tests/qtcore/missing_symbols_test.py
+++ b/tests/QtCore/missing_symbols_test.py
diff --git a/tests/qtcore/qabs_test.py b/tests/QtCore/qabs_test.py
index 1727ae6d5..1727ae6d5 100644
--- a/tests/qtcore/qabs_test.py
+++ b/tests/QtCore/qabs_test.py
diff --git a/tests/qtcore/qabstracttransition_test.py b/tests/QtCore/qabstracttransition_test.py
index 510b8ef64..510b8ef64 100644
--- a/tests/qtcore/qabstracttransition_test.py
+++ b/tests/QtCore/qabstracttransition_test.py
diff --git a/tests/qtcore/qanimationgroup_test.py b/tests/QtCore/qanimationgroup_test.py
index 05bd81e10..05bd81e10 100644
--- a/tests/qtcore/qanimationgroup_test.py
+++ b/tests/QtCore/qanimationgroup_test.py
diff --git a/tests/qtcore/qbitarray_test.py b/tests/QtCore/qbitarray_test.py
index 0ae6e1d2f..0ae6e1d2f 100755
--- a/tests/qtcore/qbitarray_test.py
+++ b/tests/QtCore/qbitarray_test.py
diff --git a/tests/qtcore/qbytearray_buffer_protocol_test.py b/tests/QtCore/qbytearray_buffer_protocol_test.py
index 117e50b93..117e50b93 100755
--- a/tests/qtcore/qbytearray_buffer_protocol_test.py
+++ b/tests/QtCore/qbytearray_buffer_protocol_test.py
diff --git a/tests/qtcore/qbytearray_concatenation_operator_test.py b/tests/QtCore/qbytearray_concatenation_operator_test.py
index b9a01ff63..b9a01ff63 100755
--- a/tests/qtcore/qbytearray_concatenation_operator_test.py
+++ b/tests/QtCore/qbytearray_concatenation_operator_test.py
diff --git a/tests/qtcore/qbytearray_operator_iadd_test.py b/tests/QtCore/qbytearray_operator_iadd_test.py
index 168f22de9..168f22de9 100644
--- a/tests/qtcore/qbytearray_operator_iadd_test.py
+++ b/tests/QtCore/qbytearray_operator_iadd_test.py
diff --git a/tests/qtcore/qbytearray_operator_test.py b/tests/QtCore/qbytearray_operator_test.py
index 4a20c04c5..4a20c04c5 100644
--- a/tests/qtcore/qbytearray_operator_test.py
+++ b/tests/QtCore/qbytearray_operator_test.py
diff --git a/tests/qtcore/qbytearray_test.py b/tests/QtCore/qbytearray_test.py
index 20bba1400..20bba1400 100644
--- a/tests/qtcore/qbytearray_test.py
+++ b/tests/QtCore/qbytearray_test.py
diff --git a/tests/qtcore/qchar_test.py b/tests/QtCore/qchar_test.py
index a40724b0e..a40724b0e 100644
--- a/tests/qtcore/qchar_test.py
+++ b/tests/QtCore/qchar_test.py
diff --git a/tests/qtcore/qcoreapplication_instance_test.py b/tests/QtCore/qcoreapplication_instance_test.py
index 365148d34..365148d34 100755
--- a/tests/qtcore/qcoreapplication_instance_test.py
+++ b/tests/QtCore/qcoreapplication_instance_test.py
diff --git a/tests/qtcore/qdatastream_test.py b/tests/QtCore/qdatastream_test.py
index d71ed2f24..d71ed2f24 100644
--- a/tests/qtcore/qdatastream_test.py
+++ b/tests/QtCore/qdatastream_test.py
diff --git a/tests/qtcore/qdate_test.py b/tests/QtCore/qdate_test.py
index 49234486f..49234486f 100644
--- a/tests/qtcore/qdate_test.py
+++ b/tests/QtCore/qdate_test.py
diff --git a/tests/qtcore/qenum_test.py b/tests/QtCore/qenum_test.py
index e3f963869..e3f963869 100644
--- a/tests/qtcore/qenum_test.py
+++ b/tests/QtCore/qenum_test.py
diff --git a/tests/qtcore/qevent_test.py b/tests/QtCore/qevent_test.py
index 07f23f098..07f23f098 100644
--- a/tests/qtcore/qevent_test.py
+++ b/tests/QtCore/qevent_test.py
diff --git a/tests/qtcore/qfile_test.py b/tests/QtCore/qfile_test.py
index adbdd68b7..adbdd68b7 100644
--- a/tests/qtcore/qfile_test.py
+++ b/tests/QtCore/qfile_test.py
diff --git a/tests/qtcore/qfileinfo_test.py b/tests/QtCore/qfileinfo_test.py
index 580b5a7d5..580b5a7d5 100644
--- a/tests/qtcore/qfileinfo_test.py
+++ b/tests/QtCore/qfileinfo_test.py
diff --git a/tests/qtcore/qflags_test.py b/tests/QtCore/qflags_test.py
index 1346c11ef..1346c11ef 100644
--- a/tests/qtcore/qflags_test.py
+++ b/tests/QtCore/qflags_test.py
diff --git a/tests/qtcore/qhandle_test.py b/tests/QtCore/qhandle_test.py
index bcf6dea3d..bcf6dea3d 100644
--- a/tests/qtcore/qhandle_test.py
+++ b/tests/QtCore/qhandle_test.py
diff --git a/tests/qtcore/qlatin1string_test.py b/tests/QtCore/qlatin1string_test.py
index fdcf6ec98..fdcf6ec98 100644
--- a/tests/qtcore/qlatin1string_test.py
+++ b/tests/QtCore/qlatin1string_test.py
diff --git a/tests/qtcore/qlinef_test.py b/tests/QtCore/qlinef_test.py
index 31b5db955..31b5db955 100644
--- a/tests/qtcore/qlinef_test.py
+++ b/tests/QtCore/qlinef_test.py
diff --git a/tests/qtcore/qlocale_test.py b/tests/QtCore/qlocale_test.py
index f1bff8e82..f1bff8e82 100644
--- a/tests/qtcore/qlocale_test.py
+++ b/tests/QtCore/qlocale_test.py
diff --git a/tests/qtcore/qmetaobject_test.py b/tests/QtCore/qmetaobject_test.py
index 667e763ad..667e763ad 100644
--- a/tests/qtcore/qmetaobject_test.py
+++ b/tests/QtCore/qmetaobject_test.py
diff --git a/tests/qtcore/qmodelindex_internalpointer_test.py b/tests/QtCore/qmodelindex_internalpointer_test.py
index 015d1c926..015d1c926 100644
--- a/tests/qtcore/qmodelindex_internalpointer_test.py
+++ b/tests/QtCore/qmodelindex_internalpointer_test.py
diff --git a/tests/qtcore/qobject_children_segfault_test.py b/tests/QtCore/qobject_children_segfault_test.py
index 930a082cf..930a082cf 100644
--- a/tests/qtcore/qobject_children_segfault_test.py
+++ b/tests/QtCore/qobject_children_segfault_test.py
diff --git a/tests/qtcore/qobject_connect_notify_test.py b/tests/QtCore/qobject_connect_notify_test.py
index 441037585..441037585 100644
--- a/tests/qtcore/qobject_connect_notify_test.py
+++ b/tests/QtCore/qobject_connect_notify_test.py
diff --git a/tests/qtcore/qobject_event_filter_test.py b/tests/QtCore/qobject_event_filter_test.py
index 8018fcda0..8018fcda0 100644
--- a/tests/qtcore/qobject_event_filter_test.py
+++ b/tests/QtCore/qobject_event_filter_test.py
diff --git a/tests/qtcore/qobject_inherits_test.py b/tests/QtCore/qobject_inherits_test.py
index 9e02b0a46..9e02b0a46 100644
--- a/tests/qtcore/qobject_inherits_test.py
+++ b/tests/QtCore/qobject_inherits_test.py
diff --git a/tests/qtcore/qobject_parent_test.py b/tests/QtCore/qobject_parent_test.py
index 4699fc60c..4699fc60c 100644
--- a/tests/qtcore/qobject_parent_test.py
+++ b/tests/QtCore/qobject_parent_test.py
diff --git a/tests/qtcore/qobject_property_test.py b/tests/QtCore/qobject_property_test.py
index 33df2ac9b..33df2ac9b 100644
--- a/tests/qtcore/qobject_property_test.py
+++ b/tests/QtCore/qobject_property_test.py
diff --git a/tests/qtcore/qobject_protected_methods_test.py b/tests/QtCore/qobject_protected_methods_test.py
index 530b870a2..530b870a2 100644
--- a/tests/qtcore/qobject_protected_methods_test.py
+++ b/tests/QtCore/qobject_protected_methods_test.py
diff --git a/tests/qtcore/qobject_test.py b/tests/QtCore/qobject_test.py
index a1749babc..a1749babc 100644
--- a/tests/qtcore/qobject_test.py
+++ b/tests/QtCore/qobject_test.py
diff --git a/tests/qtcore/qobject_timer_event_test.py b/tests/QtCore/qobject_timer_event_test.py
index b46207d88..b46207d88 100644
--- a/tests/qtcore/qobject_timer_event_test.py
+++ b/tests/QtCore/qobject_timer_event_test.py
diff --git a/tests/qtcore/qobject_tr_as_instance_test.py b/tests/QtCore/qobject_tr_as_instance_test.py
index 5aa70530b..5aa70530b 100644
--- a/tests/qtcore/qobject_tr_as_instance_test.py
+++ b/tests/QtCore/qobject_tr_as_instance_test.py
diff --git a/tests/qtcore/qpoint_test.py b/tests/QtCore/qpoint_test.py
index dfce76939..dfce76939 100644
--- a/tests/qtcore/qpoint_test.py
+++ b/tests/QtCore/qpoint_test.py
diff --git a/tests/qtcore/qprocess_test.py b/tests/QtCore/qprocess_test.py
index b01c68ba3..b01c68ba3 100644
--- a/tests/qtcore/qprocess_test.py
+++ b/tests/QtCore/qprocess_test.py
diff --git a/tests/qtcore/qrect_test.py b/tests/QtCore/qrect_test.py
index 3c5f5be05..3c5f5be05 100644
--- a/tests/qtcore/qrect_test.py
+++ b/tests/QtCore/qrect_test.py
diff --git a/tests/qtcore/qresource_test.py b/tests/QtCore/qresource_test.py
index 8f3350a60..8f3350a60 100644
--- a/tests/qtcore/qresource_test.py
+++ b/tests/QtCore/qresource_test.py
diff --git a/tests/qtcore/qsize_test.py b/tests/QtCore/qsize_test.py
index 4fb060b74..4fb060b74 100644
--- a/tests/qtcore/qsize_test.py
+++ b/tests/QtCore/qsize_test.py
diff --git a/tests/qtcore/qslot_object_test.py b/tests/QtCore/qslot_object_test.py
index ad0ea3a14..ad0ea3a14 100644
--- a/tests/qtcore/qslot_object_test.py
+++ b/tests/QtCore/qslot_object_test.py
diff --git a/tests/qtcore/qsrand_test.py b/tests/QtCore/qsrand_test.py
index 97d0a3b0b..97d0a3b0b 100644
--- a/tests/qtcore/qsrand_test.py
+++ b/tests/QtCore/qsrand_test.py
diff --git a/tests/qtcore/qstate_test.py b/tests/QtCore/qstate_test.py
index d7c9a4c44..d7c9a4c44 100644
--- a/tests/qtcore/qstate_test.py
+++ b/tests/QtCore/qstate_test.py
diff --git a/tests/qtcore/qstatemachine_test.py b/tests/QtCore/qstatemachine_test.py
index ce2449d15..ce2449d15 100644
--- a/tests/qtcore/qstatemachine_test.py
+++ b/tests/QtCore/qstatemachine_test.py
diff --git a/tests/qtcore/qstring_buffer_protocol_test.py b/tests/QtCore/qstring_buffer_protocol_test.py
index f8475d093..f8475d093 100755
--- a/tests/qtcore/qstring_buffer_protocol_test.py
+++ b/tests/QtCore/qstring_buffer_protocol_test.py
diff --git a/tests/qtcore/qstring_operator_test.py b/tests/QtCore/qstring_operator_test.py
index 6d7ae314d..6d7ae314d 100644
--- a/tests/qtcore/qstring_operator_test.py
+++ b/tests/QtCore/qstring_operator_test.py
diff --git a/tests/qtcore/qstring_test.py b/tests/QtCore/qstring_test.py
index 3f0fb4931..3f0fb4931 100644
--- a/tests/qtcore/qstring_test.py
+++ b/tests/QtCore/qstring_test.py
diff --git a/tests/qtcore/qstringlist_test.py b/tests/QtCore/qstringlist_test.py
index 031051684..031051684 100644
--- a/tests/qtcore/qstringlist_test.py
+++ b/tests/QtCore/qstringlist_test.py
diff --git a/tests/qtcore/qtext_codec_test.py b/tests/QtCore/qtext_codec_test.py
index 2bd7f8139..2bd7f8139 100644
--- a/tests/qtcore/qtext_codec_test.py
+++ b/tests/QtCore/qtext_codec_test.py
diff --git a/tests/qtcore/qtextstream_test.py b/tests/QtCore/qtextstream_test.py
index 13dc6516c..13dc6516c 100644
--- a/tests/qtcore/qtextstream_test.py
+++ b/tests/QtCore/qtextstream_test.py
diff --git a/tests/qtcore/qthread_prod_cons_test.py b/tests/QtCore/qthread_prod_cons_test.py
index fc634dd88..fc634dd88 100644
--- a/tests/qtcore/qthread_prod_cons_test.py
+++ b/tests/QtCore/qthread_prod_cons_test.py
diff --git a/tests/qtcore/qthread_signal_test.py b/tests/QtCore/qthread_signal_test.py
index edd7d77f4..edd7d77f4 100755
--- a/tests/qtcore/qthread_signal_test.py
+++ b/tests/QtCore/qthread_signal_test.py
diff --git a/tests/qtcore/qthread_test.py b/tests/QtCore/qthread_test.py
index 410afb908..410afb908 100644
--- a/tests/qtcore/qthread_test.py
+++ b/tests/QtCore/qthread_test.py
diff --git a/tests/qtcore/qtimer_singleshot_test.py b/tests/QtCore/qtimer_singleshot_test.py
index 96107ecce..96107ecce 100644
--- a/tests/qtcore/qtimer_singleshot_test.py
+++ b/tests/QtCore/qtimer_singleshot_test.py
diff --git a/tests/qtcore/qtimer_timeout_test.py b/tests/QtCore/qtimer_timeout_test.py
index 8dfe39529..8dfe39529 100644
--- a/tests/qtcore/qtimer_timeout_test.py
+++ b/tests/QtCore/qtimer_timeout_test.py
diff --git a/tests/qtcore/qtnamespace_test.py b/tests/QtCore/qtnamespace_test.py
index 3343a276b..3343a276b 100644
--- a/tests/qtcore/qtnamespace_test.py
+++ b/tests/QtCore/qtnamespace_test.py
diff --git a/tests/qtcore/quoteEnUS.txt b/tests/QtCore/quoteEnUS.txt
index 909b4fa17..909b4fa17 100644
--- a/tests/qtcore/quoteEnUS.txt
+++ b/tests/QtCore/quoteEnUS.txt
diff --git a/tests/qtcore/qurl_test.py b/tests/QtCore/qurl_test.py
index 14243a11a..14243a11a 100644
--- a/tests/qtcore/qurl_test.py
+++ b/tests/QtCore/qurl_test.py
diff --git a/tests/qtcore/qvariant_pyobject_test.py b/tests/QtCore/qvariant_pyobject_test.py
index 82da5556f..82da5556f 100644
--- a/tests/qtcore/qvariant_pyobject_test.py
+++ b/tests/QtCore/qvariant_pyobject_test.py
diff --git a/tests/qtcore/qvariant_test.py b/tests/QtCore/qvariant_test.py
index 5c23b4049..5c23b4049 100644
--- a/tests/qtcore/qvariant_test.py
+++ b/tests/QtCore/qvariant_test.py
diff --git a/tests/qtcore/resources.qrc b/tests/QtCore/resources.qrc
index cea17b440..cea17b440 100644
--- a/tests/qtcore/resources.qrc
+++ b/tests/QtCore/resources.qrc
diff --git a/tests/qtcore/resources_mc.py b/tests/QtCore/resources_mc.py
index 132c8db12..132c8db12 100644
--- a/tests/qtcore/resources_mc.py
+++ b/tests/QtCore/resources_mc.py
diff --git a/tests/qtcore/static_method_test.py b/tests/QtCore/static_method_test.py
index 1f9de78f7..1f9de78f7 100755
--- a/tests/qtcore/static_method_test.py
+++ b/tests/QtCore/static_method_test.py
diff --git a/tests/qtcore/static_protected_methods_test.py b/tests/QtCore/static_protected_methods_test.py
index 9d920a438..9d920a438 100644
--- a/tests/qtcore/static_protected_methods_test.py
+++ b/tests/QtCore/static_protected_methods_test.py
diff --git a/tests/qtcore/thread_signals.py b/tests/QtCore/thread_signals.py
index e2b66730b..9eea82907 100644
--- a/tests/qtcore/thread_signals.py
+++ b/tests/QtCore/thread_signals.py
@@ -5,14 +5,13 @@ import unittest
import os
from tempfile import mkstemp
-from PySide.QtCore import QObject, SIGNAL, QFile, QThread, QTimer
+from PySide.QtCore import QObject, SIGNAL, QFile, QThread, QTimer, Qt
from helper import UsesQCoreApplication
class MyThread(QThread):
def run(self):
- self.emit(SIGNAL("test(const QString&)"),
- "INdT - PySide");
+ self.emit(SIGNAL("test(const QString&)"), "INdT - PySide");
class TestThreadSignal(UsesQCoreApplication):
@@ -20,18 +19,13 @@ class TestThreadSignal(UsesQCoreApplication):
def _callback(self, msg):
self.assertEqual(msg, "INdT - PySide")
self.__called__ = True
- self._quit()
-
- def _quit(self):
self.app.quit()
def testThread(self):
t = MyThread()
- QObject.connect(t, SIGNAL("test(const QString&)"),
- self._callback);
-
+ QObject.connect(t, SIGNAL("test(const QString&)"), self._callback);
t.start()
- QTimer.singleShot(100, self._quit)
+
self.app.exec_()
self.assert_(self.__called__);
diff --git a/tests/qtcore/translation_test.py b/tests/QtCore/translation_test.py
index 870c8c50f..870c8c50f 100644
--- a/tests/qtcore/translation_test.py
+++ b/tests/QtCore/translation_test.py
diff --git a/tests/qtcore/translations/trans_latin.ts b/tests/QtCore/translations/trans_latin.ts
index b9fcf41be..b9fcf41be 100644
--- a/tests/qtcore/translations/trans_latin.ts
+++ b/tests/QtCore/translations/trans_latin.ts
diff --git a/tests/qtcore/translations/trans_russian.ts b/tests/QtCore/translations/trans_russian.ts
index d1ba49bd2..d1ba49bd2 100644
--- a/tests/qtcore/translations/trans_russian.ts
+++ b/tests/QtCore/translations/trans_russian.ts
diff --git a/tests/qtcore/unaryoperator_test.py b/tests/QtCore/unaryoperator_test.py
index 94db1feec..94db1feec 100755
--- a/tests/qtcore/unaryoperator_test.py
+++ b/tests/QtCore/unaryoperator_test.py
diff --git a/tests/qtcore/unicode_test.py b/tests/QtCore/unicode_test.py
index f0bb883ed..f0bb883ed 100644
--- a/tests/qtcore/unicode_test.py
+++ b/tests/QtCore/unicode_test.py
diff --git a/tests/QtDeclarative/CMakeLists.txt b/tests/QtDeclarative/CMakeLists.txt
new file mode 100644
index 000000000..4896010bd
--- /dev/null
+++ b/tests/QtDeclarative/CMakeLists.txt
@@ -0,0 +1,2 @@
+PYSIDE_TEST(qdeclarativenetwork_test.py FALSE)
+PYSIDE_TEST(qdeclarativeview_test.py FALSE)
diff --git a/tests/qtdeclarative/network.qml b/tests/QtDeclarative/network.qml
index 4b849e071..4b849e071 100644
--- a/tests/qtdeclarative/network.qml
+++ b/tests/QtDeclarative/network.qml
diff --git a/tests/qtdeclarative/qdeclarativenetwork_test.py b/tests/QtDeclarative/qdeclarativenetwork_test.py
index a03a484a0..a03a484a0 100644
--- a/tests/qtdeclarative/qdeclarativenetwork_test.py
+++ b/tests/QtDeclarative/qdeclarativenetwork_test.py
diff --git a/tests/qtdeclarative/qdeclarativeview_test.py b/tests/QtDeclarative/qdeclarativeview_test.py
index 8101c5f01..8101c5f01 100644
--- a/tests/qtdeclarative/qdeclarativeview_test.py
+++ b/tests/QtDeclarative/qdeclarativeview_test.py
diff --git a/tests/qtdeclarative/view.qml b/tests/QtDeclarative/view.qml
index ec5597df7..ec5597df7 100644
--- a/tests/qtdeclarative/view.qml
+++ b/tests/QtDeclarative/view.qml
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
new file mode 100644
index 000000000..fb6d8015b
--- /dev/null
+++ b/tests/QtGui/CMakeLists.txt
@@ -0,0 +1,58 @@
+PYSIDE_TEST(add_action_test.py)
+PYSIDE_TEST(customproxywidget_test.py)
+PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
+PYSIDE_TEST(grandparent_method_test.py)
+PYSIDE_TEST(hashabletype_test.py)
+PYSIDE_TEST(keep_reference_test.py)
+PYSIDE_TEST(missing_symbols_test.py)
+PYSIDE_TEST(paint_event_test.py)
+PYSIDE_TEST(parent_method_test.py)
+PYSIDE_TEST(python_properties_test.py)
+PYSIDE_TEST(qapplication_exit_segfault_test.py)
+PYSIDE_TEST(qapplication_singleton_test.py)
+PYSIDE_TEST(qapp_test.py)
+PYSIDE_TEST(qbrush_test.py)
+PYSIDE_TEST(qcolor_test.py)
+PYSIDE_TEST(qdatastream_gui_operators_test.py)
+PYSIDE_TEST(qfontdialog_test.py)
+PYSIDE_TEST(qfontmetrics_test.py)
+PYSIDE_TEST(qgraphicsitem_isblocked_test.py)
+PYSIDE_TEST(qgraphicsitem_test.py)
+PYSIDE_TEST(qgraphicsproxywidget_test.py)
+PYSIDE_TEST(qgraphicsscene_test.py)
+PYSIDE_TEST(qinputdialog_get_test.py)
+PYSIDE_TEST(qitemselection_test.py)
+PYSIDE_TEST(qlayout_ref_test.py)
+PYSIDE_TEST(qlayout_test.py)
+PYSIDE_TEST(qlcdnumber_test.py)
+PYSIDE_TEST(qlistwidgetitem_test.py)
+PYSIDE_TEST(qmainwindow_test.py)
+PYSIDE_TEST(qmatrix_test.py)
+PYSIDE_TEST(qmenuadd_test.py)
+PYSIDE_TEST(qmenu_test.py)
+PYSIDE_TEST(qobject_mi_test.py)
+PYSIDE_TEST(qpainter_test.py)
+PYSIDE_TEST(qpen_test.py)
+PYSIDE_TEST(qpixmap_test.py)
+PYSIDE_TEST(qpushbutton_test.py)
+PYSIDE_TEST(qradialgradient_test.py)
+PYSIDE_TEST(qregion_test.py)
+PYSIDE_TEST(qshortcut_test.py)
+PYSIDE_TEST(qstandarditemmodel_test.py)
+PYSIDE_TEST(qstring_qkeysequence_test.py)
+PYSIDE_TEST(qstyle_test.py)
+PYSIDE_TEST(qtableview_test.py)
+PYSIDE_TEST(qtabwidget_test.py)
+PYSIDE_TEST(qtextedit_test.py)
+PYSIDE_TEST(qtoolbar_test.py)
+PYSIDE_TEST(qtoolbox_test.py)
+PYSIDE_TEST(qvariant_test.py)
+PYSIDE_TEST(qwidget_setlayout_test.py)
+PYSIDE_TEST(qwidget_test.py TRUE) #Bug 237
+PYSIDE_TEST(reference_count_test.py)
+PYSIDE_TEST(standardpixmap_test.py)
+PYSIDE_TEST(timed_app_test.py)
+PYSIDE_TEST(virtual_protected_inheritance_test.py)
+PYSIDE_TEST(virtual_pure_override.py)
+PYSIDE_TEST(wrong_return_test.py)
+PYSIDE_TEST(x11_symbols.py)
diff --git a/tests/qtgui/add_action_test.py b/tests/QtGui/add_action_test.py
index 7e20c459d..7e20c459d 100644
--- a/tests/qtgui/add_action_test.py
+++ b/tests/QtGui/add_action_test.py
diff --git a/tests/qtgui/customproxywidget_test.py b/tests/QtGui/customproxywidget_test.py
index b9ccdff7a..b9ccdff7a 100755
--- a/tests/qtgui/customproxywidget_test.py
+++ b/tests/QtGui/customproxywidget_test.py
diff --git a/tests/qtgui/float_to_int_implicit_conversion_test.py b/tests/QtGui/float_to_int_implicit_conversion_test.py
index cc7d18fd9..cc7d18fd9 100644
--- a/tests/qtgui/float_to_int_implicit_conversion_test.py
+++ b/tests/QtGui/float_to_int_implicit_conversion_test.py
diff --git a/tests/qtgui/grandparent_method_test.py b/tests/QtGui/grandparent_method_test.py
index 3c1829377..3c1829377 100644
--- a/tests/qtgui/grandparent_method_test.py
+++ b/tests/QtGui/grandparent_method_test.py
diff --git a/tests/qtgui/hashabletype_test.py b/tests/QtGui/hashabletype_test.py
index 64683a398..64683a398 100644
--- a/tests/qtgui/hashabletype_test.py
+++ b/tests/QtGui/hashabletype_test.py
diff --git a/tests/qtgui/keep_reference_test.py b/tests/QtGui/keep_reference_test.py
index d0962d5df..d0962d5df 100755
--- a/tests/qtgui/keep_reference_test.py
+++ b/tests/QtGui/keep_reference_test.py
diff --git a/tests/qtgui/missing_symbols_test.py b/tests/QtGui/missing_symbols_test.py
index de23c569e..de23c569e 100644
--- a/tests/qtgui/missing_symbols_test.py
+++ b/tests/QtGui/missing_symbols_test.py
diff --git a/tests/qtgui/paint_event_test.py b/tests/QtGui/paint_event_test.py
index 02253908e..02253908e 100644
--- a/tests/qtgui/paint_event_test.py
+++ b/tests/QtGui/paint_event_test.py
diff --git a/tests/qtgui/parent_method_test.py b/tests/QtGui/parent_method_test.py
index 8d0ba9601..8d0ba9601 100644
--- a/tests/qtgui/parent_method_test.py
+++ b/tests/QtGui/parent_method_test.py
diff --git a/tests/qtgui/python_properties_test.py b/tests/QtGui/python_properties_test.py
index 7d6c024e7..7d6c024e7 100644
--- a/tests/qtgui/python_properties_test.py
+++ b/tests/QtGui/python_properties_test.py
diff --git a/tests/qtgui/qapp_test.py b/tests/QtGui/qapp_test.py
index c371492e6..c371492e6 100644
--- a/tests/qtgui/qapp_test.py
+++ b/tests/QtGui/qapp_test.py
diff --git a/tests/qtgui/qapplication_exit_segfault_test.py b/tests/QtGui/qapplication_exit_segfault_test.py
index 72b810a98..72b810a98 100644
--- a/tests/qtgui/qapplication_exit_segfault_test.py
+++ b/tests/QtGui/qapplication_exit_segfault_test.py
diff --git a/tests/qtgui/qapplication_singleton_test.py b/tests/QtGui/qapplication_singleton_test.py
index 9c959f9d4..9c959f9d4 100644
--- a/tests/qtgui/qapplication_singleton_test.py
+++ b/tests/QtGui/qapplication_singleton_test.py
diff --git a/tests/qtgui/qbrush_test.py b/tests/QtGui/qbrush_test.py
index cf11652a5..cf11652a5 100644
--- a/tests/qtgui/qbrush_test.py
+++ b/tests/QtGui/qbrush_test.py
diff --git a/tests/qtgui/qcolor_test.py b/tests/QtGui/qcolor_test.py
index 3c2f11ba0..3c2f11ba0 100644
--- a/tests/qtgui/qcolor_test.py
+++ b/tests/QtGui/qcolor_test.py
diff --git a/tests/qtgui/qdatastream_gui_operators_test.py b/tests/QtGui/qdatastream_gui_operators_test.py
index dbb638fd3..dbb638fd3 100644
--- a/tests/qtgui/qdatastream_gui_operators_test.py
+++ b/tests/QtGui/qdatastream_gui_operators_test.py
diff --git a/tests/qtgui/qfontdialog_test.py b/tests/QtGui/qfontdialog_test.py
index 02bce7828..02bce7828 100644
--- a/tests/qtgui/qfontdialog_test.py
+++ b/tests/QtGui/qfontdialog_test.py
diff --git a/tests/qtgui/qfontmetrics_test.py b/tests/QtGui/qfontmetrics_test.py
index 7964d91d4..7964d91d4 100644
--- a/tests/qtgui/qfontmetrics_test.py
+++ b/tests/QtGui/qfontmetrics_test.py
diff --git a/tests/qtgui/qgraphicsitem_isblocked_test.py b/tests/QtGui/qgraphicsitem_isblocked_test.py
index b281c8a59..b281c8a59 100755
--- a/tests/qtgui/qgraphicsitem_isblocked_test.py
+++ b/tests/QtGui/qgraphicsitem_isblocked_test.py
diff --git a/tests/qtgui/qgraphicsitem_test.py b/tests/QtGui/qgraphicsitem_test.py
index 43545a431..43545a431 100644
--- a/tests/qtgui/qgraphicsitem_test.py
+++ b/tests/QtGui/qgraphicsitem_test.py
diff --git a/tests/qtgui/qgraphicsproxywidget_test.py b/tests/QtGui/qgraphicsproxywidget_test.py
index 3a856bc7c..3a856bc7c 100755
--- a/tests/qtgui/qgraphicsproxywidget_test.py
+++ b/tests/QtGui/qgraphicsproxywidget_test.py
diff --git a/tests/qtgui/qgraphicsscene_test.py b/tests/QtGui/qgraphicsscene_test.py
index 98177e75a..98177e75a 100644
--- a/tests/qtgui/qgraphicsscene_test.py
+++ b/tests/QtGui/qgraphicsscene_test.py
diff --git a/tests/qtgui/qinputdialog_get_test.py b/tests/QtGui/qinputdialog_get_test.py
index c75f71251..c75f71251 100644
--- a/tests/qtgui/qinputdialog_get_test.py
+++ b/tests/QtGui/qinputdialog_get_test.py
diff --git a/tests/qtgui/qitemselection_test.py b/tests/QtGui/qitemselection_test.py
index 8c6c34e03..8c6c34e03 100644
--- a/tests/qtgui/qitemselection_test.py
+++ b/tests/QtGui/qitemselection_test.py
diff --git a/tests/qtgui/qlayout_ref_test.py b/tests/QtGui/qlayout_ref_test.py
index a6342718d..a6342718d 100644
--- a/tests/qtgui/qlayout_ref_test.py
+++ b/tests/QtGui/qlayout_ref_test.py
diff --git a/tests/qtgui/qlayout_test.py b/tests/QtGui/qlayout_test.py
index ae773bb0a..ae773bb0a 100644
--- a/tests/qtgui/qlayout_test.py
+++ b/tests/QtGui/qlayout_test.py
diff --git a/tests/qtgui/qlcdnumber_test.py b/tests/QtGui/qlcdnumber_test.py
index eb6a4f396..eb6a4f396 100644
--- a/tests/qtgui/qlcdnumber_test.py
+++ b/tests/QtGui/qlcdnumber_test.py
diff --git a/tests/qtgui/qlistwidgetitem_test.py b/tests/QtGui/qlistwidgetitem_test.py
index 8f96c518f..8f96c518f 100644
--- a/tests/qtgui/qlistwidgetitem_test.py
+++ b/tests/QtGui/qlistwidgetitem_test.py
diff --git a/tests/qtgui/qmainwindow_test.py b/tests/QtGui/qmainwindow_test.py
index fce145d53..fce145d53 100644
--- a/tests/qtgui/qmainwindow_test.py
+++ b/tests/QtGui/qmainwindow_test.py
diff --git a/tests/qtgui/qmatrix_test.py b/tests/QtGui/qmatrix_test.py
index 7c87e23a4..7c87e23a4 100644
--- a/tests/qtgui/qmatrix_test.py
+++ b/tests/QtGui/qmatrix_test.py
diff --git a/tests/qtgui/qmenu_test.py b/tests/QtGui/qmenu_test.py
index 37faf1613..37faf1613 100644
--- a/tests/qtgui/qmenu_test.py
+++ b/tests/QtGui/qmenu_test.py
diff --git a/tests/qtgui/qmenuadd_test.py b/tests/QtGui/qmenuadd_test.py
index 47b112bf1..47b112bf1 100644
--- a/tests/qtgui/qmenuadd_test.py
+++ b/tests/QtGui/qmenuadd_test.py
diff --git a/tests/qtgui/qobject_mi_test.py b/tests/QtGui/qobject_mi_test.py
index 8ccc1d35d..8ccc1d35d 100644
--- a/tests/qtgui/qobject_mi_test.py
+++ b/tests/QtGui/qobject_mi_test.py
diff --git a/tests/qtgui/qpainter_test.py b/tests/QtGui/qpainter_test.py
index ad1d1e471..ad1d1e471 100644
--- a/tests/qtgui/qpainter_test.py
+++ b/tests/QtGui/qpainter_test.py
diff --git a/tests/qtgui/qpen_test.py b/tests/QtGui/qpen_test.py
index f9e9b1861..f9e9b1861 100644
--- a/tests/qtgui/qpen_test.py
+++ b/tests/QtGui/qpen_test.py
diff --git a/tests/qtgui/qpixmap_test.py b/tests/QtGui/qpixmap_test.py
index 481409462..481409462 100644
--- a/tests/qtgui/qpixmap_test.py
+++ b/tests/QtGui/qpixmap_test.py
diff --git a/tests/qtgui/qpushbutton_test.py b/tests/QtGui/qpushbutton_test.py
index 984960879..984960879 100644
--- a/tests/qtgui/qpushbutton_test.py
+++ b/tests/QtGui/qpushbutton_test.py
diff --git a/tests/qtgui/qradialgradient_test.py b/tests/QtGui/qradialgradient_test.py
index 0c582c341..0c582c341 100644
--- a/tests/qtgui/qradialgradient_test.py
+++ b/tests/QtGui/qradialgradient_test.py
diff --git a/tests/qtgui/qregion_test.py b/tests/QtGui/qregion_test.py
index 2274d5e92..2274d5e92 100644
--- a/tests/qtgui/qregion_test.py
+++ b/tests/QtGui/qregion_test.py
diff --git a/tests/qtgui/qshortcut_test.py b/tests/QtGui/qshortcut_test.py
index c9cb3bc7c..c9cb3bc7c 100644
--- a/tests/qtgui/qshortcut_test.py
+++ b/tests/QtGui/qshortcut_test.py
diff --git a/tests/qtgui/qstandarditemmodel_test.py b/tests/QtGui/qstandarditemmodel_test.py
index d83d856da..d83d856da 100644
--- a/tests/qtgui/qstandarditemmodel_test.py
+++ b/tests/QtGui/qstandarditemmodel_test.py
diff --git a/tests/qtgui/qstring_qkeysequence_test.py b/tests/QtGui/qstring_qkeysequence_test.py
index 1f435e6ee..1f435e6ee 100644
--- a/tests/qtgui/qstring_qkeysequence_test.py
+++ b/tests/QtGui/qstring_qkeysequence_test.py
diff --git a/tests/qtgui/qstyle_test.py b/tests/QtGui/qstyle_test.py
index da467e871..da467e871 100755
--- a/tests/qtgui/qstyle_test.py
+++ b/tests/QtGui/qstyle_test.py
diff --git a/tests/qtgui/qtableview_test.py b/tests/QtGui/qtableview_test.py
index 0ea5cab8a..0ea5cab8a 100644
--- a/tests/qtgui/qtableview_test.py
+++ b/tests/QtGui/qtableview_test.py
diff --git a/tests/qtgui/qtabwidget_test.py b/tests/QtGui/qtabwidget_test.py
index 143f99cab..143f99cab 100644
--- a/tests/qtgui/qtabwidget_test.py
+++ b/tests/QtGui/qtabwidget_test.py
diff --git a/tests/qtgui/qtextedit_test.py b/tests/QtGui/qtextedit_test.py
index 442cbe2cf..442cbe2cf 100644
--- a/tests/qtgui/qtextedit_test.py
+++ b/tests/QtGui/qtextedit_test.py
diff --git a/tests/qtgui/qtoolbar_test.py b/tests/QtGui/qtoolbar_test.py
index 1bcf566db..1bcf566db 100644
--- a/tests/qtgui/qtoolbar_test.py
+++ b/tests/QtGui/qtoolbar_test.py
diff --git a/tests/qtgui/qtoolbox_test.py b/tests/QtGui/qtoolbox_test.py
index dd0d2c6a5..dd0d2c6a5 100644
--- a/tests/qtgui/qtoolbox_test.py
+++ b/tests/QtGui/qtoolbox_test.py
diff --git a/tests/qtgui/qvariant_test.py b/tests/QtGui/qvariant_test.py
index 138e43291..138e43291 100644
--- a/tests/qtgui/qvariant_test.py
+++ b/tests/QtGui/qvariant_test.py
diff --git a/tests/qtgui/qwidget_setlayout_test.py b/tests/QtGui/qwidget_setlayout_test.py
index c715396ed..c715396ed 100644
--- a/tests/qtgui/qwidget_setlayout_test.py
+++ b/tests/QtGui/qwidget_setlayout_test.py
diff --git a/tests/qtgui/qwidget_test.py b/tests/QtGui/qwidget_test.py
index a14311c13..a14311c13 100644
--- a/tests/qtgui/qwidget_test.py
+++ b/tests/QtGui/qwidget_test.py
diff --git a/tests/qtgui/reference_count_test.py b/tests/QtGui/reference_count_test.py
index b54986821..b54986821 100644
--- a/tests/qtgui/reference_count_test.py
+++ b/tests/QtGui/reference_count_test.py
diff --git a/tests/qtgui/sample.png b/tests/QtGui/sample.png
index 60450f0dc..60450f0dc 100644
--- a/tests/qtgui/sample.png
+++ b/tests/QtGui/sample.png
Binary files differ
diff --git a/tests/qtgui/standardpixmap_test.py b/tests/QtGui/standardpixmap_test.py
index 65bd3220a..65bd3220a 100644
--- a/tests/qtgui/standardpixmap_test.py
+++ b/tests/QtGui/standardpixmap_test.py
diff --git a/tests/qtgui/timed_app_test.py b/tests/QtGui/timed_app_test.py
index 4af9a0130..4af9a0130 100644
--- a/tests/qtgui/timed_app_test.py
+++ b/tests/QtGui/timed_app_test.py
diff --git a/tests/qtgui/virtual_protected_inheritance_test.py b/tests/QtGui/virtual_protected_inheritance_test.py
index 15de37dfb..15de37dfb 100644
--- a/tests/qtgui/virtual_protected_inheritance_test.py
+++ b/tests/QtGui/virtual_protected_inheritance_test.py
diff --git a/tests/qtgui/virtual_pure_override.py b/tests/QtGui/virtual_pure_override.py
index c496e4907..c496e4907 100644
--- a/tests/qtgui/virtual_pure_override.py
+++ b/tests/QtGui/virtual_pure_override.py
diff --git a/tests/qtgui/wrong_return_test.py b/tests/QtGui/wrong_return_test.py
index d14ac9e98..d14ac9e98 100644
--- a/tests/qtgui/wrong_return_test.py
+++ b/tests/QtGui/wrong_return_test.py
diff --git a/tests/qtgui/x11_symbols.py b/tests/QtGui/x11_symbols.py
index 29cce150e..29cce150e 100644
--- a/tests/qtgui/x11_symbols.py
+++ b/tests/QtGui/x11_symbols.py
diff --git a/tests/QtHelp/CMakeLists.txt b/tests/QtHelp/CMakeLists.txt
new file mode 100644
index 000000000..d0ba2d80c
--- /dev/null
+++ b/tests/QtHelp/CMakeLists.txt
@@ -0,0 +1 @@
+PYSIDE_TEST(help_test.py)
diff --git a/tests/qthelp/help_test.py b/tests/QtHelp/help_test.py
index e2ff532a6..e2ff532a6 100644
--- a/tests/qthelp/help_test.py
+++ b/tests/QtHelp/help_test.py
diff --git a/tests/QtMaemo5/CMakeLists.txt b/tests/QtMaemo5/CMakeLists.txt
new file mode 100644
index 000000000..73bb316f5
--- /dev/null
+++ b/tests/QtMaemo5/CMakeLists.txt
@@ -0,0 +1,2 @@
+PYSIDE_TEST(pickselector_test.py)
+PYSIDE_TEST(qmaemo5import_test.py)
diff --git a/tests/qtmaemo5/pickselector_test.py b/tests/QtMaemo5/pickselector_test.py
index 013c1d40b..013c1d40b 100644
--- a/tests/qtmaemo5/pickselector_test.py
+++ b/tests/QtMaemo5/pickselector_test.py
diff --git a/tests/qtmaemo5/qmaemo5import_test.py b/tests/QtMaemo5/qmaemo5import_test.py
index a003f056a..a003f056a 100644
--- a/tests/qtmaemo5/qmaemo5import_test.py
+++ b/tests/QtMaemo5/qmaemo5import_test.py
diff --git a/tests/QtMultimedia/CMakeLists.txt b/tests/QtMultimedia/CMakeLists.txt
new file mode 100644
index 000000000..62150eb79
--- /dev/null
+++ b/tests/QtMultimedia/CMakeLists.txt
@@ -0,0 +1 @@
+PYSIDE_TEST(audio_test.py)
diff --git a/tests/qtmultimedia/audio_test.py b/tests/QtMultimedia/audio_test.py
index 04d0a1e05..04d0a1e05 100644
--- a/tests/qtmultimedia/audio_test.py
+++ b/tests/QtMultimedia/audio_test.py
diff --git a/tests/QtNetwork/CMakeLists.txt b/tests/QtNetwork/CMakeLists.txt
new file mode 100644
index 000000000..cae147080
--- /dev/null
+++ b/tests/QtNetwork/CMakeLists.txt
@@ -0,0 +1,4 @@
+PYSIDE_TEST(accessManager_test.py)
+PYSIDE_TEST(http_test.py)
+PYSIDE_TEST(tcpserver_test.py)
+PYSIDE_TEST(udpsocket_test.py)
diff --git a/tests/qtnetwork/accessManager_test.py b/tests/QtNetwork/accessManager_test.py
index 9a00e7e79..9a00e7e79 100644
--- a/tests/qtnetwork/accessManager_test.py
+++ b/tests/QtNetwork/accessManager_test.py
diff --git a/tests/qtnetwork/http_test.py b/tests/QtNetwork/http_test.py
index 379ff5dfb..379ff5dfb 100644
--- a/tests/qtnetwork/http_test.py
+++ b/tests/QtNetwork/http_test.py
diff --git a/tests/qtnetwork/tcpserver_test.py b/tests/QtNetwork/tcpserver_test.py
index 77f830e36..77f830e36 100644
--- a/tests/qtnetwork/tcpserver_test.py
+++ b/tests/QtNetwork/tcpserver_test.py
diff --git a/tests/qtnetwork/udpsocket_test.py b/tests/QtNetwork/udpsocket_test.py
index 26cff7f65..26cff7f65 100644
--- a/tests/qtnetwork/udpsocket_test.py
+++ b/tests/QtNetwork/udpsocket_test.py
diff --git a/tests/QtOpenGL/CMakeLists.txt b/tests/QtOpenGL/CMakeLists.txt
new file mode 100644
index 000000000..3064edfbc
--- /dev/null
+++ b/tests/QtOpenGL/CMakeLists.txt
@@ -0,0 +1,3 @@
+if(${QTVERSION} VERSION_GREATER 4.6.9)
+ PYSIDE_TEST(qglbuffer_test.py)
+endif()
diff --git a/tests/qtopengl/qglbuffer_test.py b/tests/QtOpenGL/qglbuffer_test.py
index ae23fbdf3..ae23fbdf3 100644
--- a/tests/qtopengl/qglbuffer_test.py
+++ b/tests/QtOpenGL/qglbuffer_test.py
diff --git a/tests/QtScript/CMakeLists.txt b/tests/QtScript/CMakeLists.txt
new file mode 100644
index 000000000..b76a26299
--- /dev/null
+++ b/tests/QtScript/CMakeLists.txt
@@ -0,0 +1,3 @@
+PYSIDE_TEST(base_test.py)
+PYSIDE_TEST(engine_test.py)
+PYSIDE_TEST(test_base.py)
diff --git a/tests/qtscript/base_test.py b/tests/QtScript/base_test.py
index 6ad27e007..6ad27e007 100644
--- a/tests/qtscript/base_test.py
+++ b/tests/QtScript/base_test.py
diff --git a/tests/qtscript/engine_test.py b/tests/QtScript/engine_test.py
index 074d3df40..074d3df40 100644
--- a/tests/qtscript/engine_test.py
+++ b/tests/QtScript/engine_test.py
diff --git a/tests/qtscript/test_base.py b/tests/QtScript/test_base.py
index 6ad27e007..6ad27e007 100644
--- a/tests/qtscript/test_base.py
+++ b/tests/QtScript/test_base.py
diff --git a/tests/QtScriptTools/CMakeLists.txt b/tests/QtScriptTools/CMakeLists.txt
new file mode 100644
index 000000000..ee22737c6
--- /dev/null
+++ b/tests/QtScriptTools/CMakeLists.txt
@@ -0,0 +1 @@
+PYSIDE_TEST(debugger_test.py)
diff --git a/tests/qtscripttools/debugger_test.py b/tests/QtScriptTools/debugger_test.py
index e5253610a..e5253610a 100644
--- a/tests/qtscripttools/debugger_test.py
+++ b/tests/QtScriptTools/debugger_test.py
diff --git a/tests/QtSql/CMakeLists.txt b/tests/QtSql/CMakeLists.txt
new file mode 100644
index 000000000..a94469109
--- /dev/null
+++ b/tests/QtSql/CMakeLists.txt
@@ -0,0 +1 @@
+PYSIDE_TEST(qsqldatabaseandqueries_test.py)
diff --git a/tests/qtsql/qsqldatabaseandqueries_test.py b/tests/QtSql/qsqldatabaseandqueries_test.py
index 49f220937..49f220937 100755
--- a/tests/qtsql/qsqldatabaseandqueries_test.py
+++ b/tests/QtSql/qsqldatabaseandqueries_test.py
diff --git a/tests/QtSvg/CMakeLists.txt b/tests/QtSvg/CMakeLists.txt
new file mode 100644
index 000000000..6a9c9d562
--- /dev/null
+++ b/tests/QtSvg/CMakeLists.txt
@@ -0,0 +1 @@
+PYSIDE_TEST(qsvggenerator_test.py)
diff --git a/tests/qtsvg/qsvggenerator_test.py b/tests/QtSvg/qsvggenerator_test.py
index cec7fdaff..cec7fdaff 100644
--- a/tests/qtsvg/qsvggenerator_test.py
+++ b/tests/QtSvg/qsvggenerator_test.py
diff --git a/tests/QtTest/CMakeLists.txt b/tests/QtTest/CMakeLists.txt
new file mode 100644
index 000000000..b1bdac0a6
--- /dev/null
+++ b/tests/QtTest/CMakeLists.txt
@@ -0,0 +1,2 @@
+PYSIDE_TEST(click_test.py)
+PYSIDE_TEST(eventfilter_test.py)
diff --git a/tests/qttest/click_test.py b/tests/QtTest/click_test.py
index e295cee68..e295cee68 100644
--- a/tests/qttest/click_test.py
+++ b/tests/QtTest/click_test.py
diff --git a/tests/qttest/eventfilter_test.py b/tests/QtTest/eventfilter_test.py
index 382460ee7..382460ee7 100644
--- a/tests/qttest/eventfilter_test.py
+++ b/tests/QtTest/eventfilter_test.py
diff --git a/tests/QtUiTools/CMakeLists.txt b/tests/QtUiTools/CMakeLists.txt
new file mode 100644
index 000000000..9118b5b6c
--- /dev/null
+++ b/tests/QtUiTools/CMakeLists.txt
@@ -0,0 +1,2 @@
+PYSIDE_TEST(uiloader_test.py)
+PYSIDE_TEST(ui_test.py)
diff --git a/tests/qtuitools/test.ui b/tests/QtUiTools/test.ui
index 60afe22b3..60afe22b3 100644
--- a/tests/qtuitools/test.ui
+++ b/tests/QtUiTools/test.ui
diff --git a/tests/qtuitools/ui_test.py b/tests/QtUiTools/ui_test.py
index 6f599cefb..6f599cefb 100644
--- a/tests/qtuitools/ui_test.py
+++ b/tests/QtUiTools/ui_test.py
diff --git a/tests/qtuitools/uiloader_test.py b/tests/QtUiTools/uiloader_test.py
index fe3725ba1..fe3725ba1 100644
--- a/tests/qtuitools/uiloader_test.py
+++ b/tests/QtUiTools/uiloader_test.py
diff --git a/tests/QtWebKit/CMakeLists.txt b/tests/QtWebKit/CMakeLists.txt
new file mode 100644
index 000000000..54728656f
--- /dev/null
+++ b/tests/QtWebKit/CMakeLists.txt
@@ -0,0 +1,2 @@
+PYSIDE_TEST(webpage_test.py)
+PYSIDE_TEST(webview_test.py)
diff --git a/tests/qtwebkit/fox.html b/tests/QtWebKit/fox.html
index e7691eb66..e7691eb66 100644
--- a/tests/qtwebkit/fox.html
+++ b/tests/QtWebKit/fox.html
diff --git a/tests/qtwebkit/webpage_test.py b/tests/QtWebKit/webpage_test.py
index 20796971f..20796971f 100644
--- a/tests/qtwebkit/webpage_test.py
+++ b/tests/QtWebKit/webpage_test.py
diff --git a/tests/qtwebkit/webview_test.py b/tests/QtWebKit/webview_test.py
index c06e437c3..c06e437c3 100644
--- a/tests/qtwebkit/webview_test.py
+++ b/tests/QtWebKit/webview_test.py
diff --git a/tests/QtXml/CMakeLists.txt b/tests/QtXml/CMakeLists.txt
new file mode 100644
index 000000000..2c21bf87d
--- /dev/null
+++ b/tests/QtXml/CMakeLists.txt
@@ -0,0 +1,2 @@
+PYSIDE_TEST(qdomdocument_test.py)
+PYSIDE_TEST(qxmlsimplereader_test.py)
diff --git a/tests/qtxml/qdomdocument_test.py b/tests/QtXml/qdomdocument_test.py
index 86aece7ba..86aece7ba 100644
--- a/tests/qtxml/qdomdocument_test.py
+++ b/tests/QtXml/qdomdocument_test.py
diff --git a/tests/qtxml/qxmlsimplereader_test.py b/tests/QtXml/qxmlsimplereader_test.py
index 6c4d3f4ea..6c4d3f4ea 100644
--- a/tests/qtxml/qxmlsimplereader_test.py
+++ b/tests/QtXml/qxmlsimplereader_test.py
diff --git a/tests/QtXmlPatterns/CMakeLists.txt b/tests/QtXmlPatterns/CMakeLists.txt
new file mode 100644
index 000000000..7f570f156
--- /dev/null
+++ b/tests/QtXmlPatterns/CMakeLists.txt
@@ -0,0 +1 @@
+PYSIDE_TEST(import_test.py)
diff --git a/tests/qtxmlpatterns/import_test.py b/tests/QtXmlPatterns/import_test.py
index 5bab9755c..5bab9755c 100644
--- a/tests/qtxmlpatterns/import_test.py
+++ b/tests/QtXmlPatterns/import_test.py
diff --git a/tests/phonon/CMakeLists.txt b/tests/phonon/CMakeLists.txt
new file mode 100644
index 000000000..1174709a2
--- /dev/null
+++ b/tests/phonon/CMakeLists.txt
@@ -0,0 +1,2 @@
+PYSIDE_TEST(basic_playing_test.py)
+PYSIDE_TEST(capabilities_test.py)
diff --git a/tests/qtgui/qlabel_pixmap_refcount.py b/tests/qtgui/qlabel_pixmap_refcount.py
deleted file mode 100644
index db8783e98..000000000
--- a/tests/qtgui/qlabel_pixmap_refcount.py
+++ /dev/null
@@ -1,46 +0,0 @@
-
-'''Test cases for QLabel->pixmap refcount control'''
-
-import unittest
-import sys
-
-
-from helper import UsesQApplication
-from PySide.QtGui import QApplication, QLabel, QPixmap
-
-class QLabelTest(UsesQApplication):
- '''Test case for constructor of QBrush'''
-
- def testDestroyOwner(self):
- p = QPixmap()
- l = QLabel()
- l.setPixmap(p)
-
- del p
-
- p1 = l.pixmap()
- self.assertEqual(sys.getrefcount(p1), 2)
- self.assertEqual(sys.getrefcount(l), 2)
-
- del l
- self.assertEqual(sys.getrefcount(p1), 2)
-
-
- def testRefCount(self):
- p = QPixmap()
- l = QLabel()
- l.setPixmap(p)
-
- del p
-
- p1 = l.pixmap()
- self.assertEqual(sys.getrefcount(p1), 2)
-
- p2 = l.pixmap()
- self.assertEqual(sys.getrefcount(p2), 3)
-
- p3 = l.pixmap()
- self.assertEqual(sys.getrefcount(p3), 4)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/tests/run_test.sh b/tests/run_test.sh
index 8671ce350..363fae57b 100755
--- a/tests/run_test.sh
+++ b/tests/run_test.sh
@@ -1,13 +1,13 @@
-#!/usr/bin/python
+#!/bin/sh
# This is a nasty workaround of a CTest limitation
# of setting the environment variables for the test.
# $1: LD_LIBRARY_PATH
-# $2: $PYTHON_PATH
+# $2: $PYTHONPATH
# $3: python executable
# $4: test file
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$1
-export PYTHONPATH=$PYTHONPATH:$2
+export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH
+export PYTHONPATH=$2:$PYTHONPATH
$3 $4
diff --git a/tests/signals/CMakeLists.txt b/tests/signals/CMakeLists.txt
new file mode 100644
index 000000000..3e5968449
--- /dev/null
+++ b/tests/signals/CMakeLists.txt
@@ -0,0 +1,32 @@
+PYSIDE_TEST(args_dont_match_test.py)
+PYSIDE_TEST(decorators_test.py)
+PYSIDE_TEST(invalid_callback_test.py)
+PYSIDE_TEST(lambda_gui_test.py)
+PYSIDE_TEST(lambda_test.py)
+PYSIDE_TEST(multiple_connections_gui_test.py)
+PYSIDE_TEST(multiple_connections_test.py)
+PYSIDE_TEST(pysignal_test.py)
+PYSIDE_TEST(qobject_destroyed_test.py)
+PYSIDE_TEST(qobject_receivers_test.py)
+PYSIDE_TEST(qobject_sender_test.py)
+PYSIDE_TEST(ref01_test.py)
+PYSIDE_TEST(ref02_test.py)
+PYSIDE_TEST(ref03_test.py)
+PYSIDE_TEST(ref04_test.py)
+PYSIDE_TEST(ref05_test.py)
+PYSIDE_TEST(ref06_test.py)
+PYSIDE_TEST(segfault_proxyparent_test.py)
+PYSIDE_TEST(self_connect_test.py)
+PYSIDE_TEST(short_circuit_test.py)
+PYSIDE_TEST(signal2signal_connect_test.py)
+PYSIDE_TEST(signal_autoconnect_test.py)
+PYSIDE_TEST(signal_connectiontype_support.py)
+PYSIDE_TEST(signal_emission_gui_test.py)
+PYSIDE_TEST(signal_emission_test.py)
+PYSIDE_TEST(signal_func_test.py)
+PYSIDE_TEST(signal_manager_refcount_test.py)
+PYSIDE_TEST(signal_object_test.py)
+PYSIDE_TEST(signal_with_primitive_type_test.py)
+PYSIDE_TEST(slot_reference_count_test.py)
+PYSIDE_TEST(static_metaobject_test.py)
+PYSIDE_TEST(upstream_segfault_test.py)
diff --git a/tests/signals/args_dont_match_test.py b/tests/signals/args_dont_match_test.py
index b81c5682c..25211671c 100644..100755
--- a/tests/signals/args_dont_match_test.py
+++ b/tests/signals/args_dont_match_test.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
import unittest
from PySide.QtCore import *
diff --git a/tests/signals/decorators_test.py b/tests/signals/decorators_test.py
index db068d009..db068d009 100644..100755
--- a/tests/signals/decorators_test.py
+++ b/tests/signals/decorators_test.py
diff --git a/tests/signals/invalid_callback_test.py b/tests/signals/invalid_callback_test.py
index 3328bb5c6..3328bb5c6 100644..100755
--- a/tests/signals/invalid_callback_test.py
+++ b/tests/signals/invalid_callback_test.py
diff --git a/tests/signals/lambda_gui_test.py b/tests/signals/lambda_gui_test.py
index e842ae2e2..e842ae2e2 100644..100755
--- a/tests/signals/lambda_gui_test.py
+++ b/tests/signals/lambda_gui_test.py
diff --git a/tests/signals/lambda_test.py b/tests/signals/lambda_test.py
index dff743c84..dff743c84 100644..100755
--- a/tests/signals/lambda_test.py
+++ b/tests/signals/lambda_test.py
diff --git a/tests/signals/multiple_connections_gui_test.py b/tests/signals/multiple_connections_gui_test.py
index 72feac08f..72feac08f 100644..100755
--- a/tests/signals/multiple_connections_gui_test.py
+++ b/tests/signals/multiple_connections_gui_test.py
diff --git a/tests/signals/multiple_connections_test.py b/tests/signals/multiple_connections_test.py
index 5daeaab87..5daeaab87 100644..100755
--- a/tests/signals/multiple_connections_test.py
+++ b/tests/signals/multiple_connections_test.py
diff --git a/tests/signals/pysignal_test.py b/tests/signals/pysignal_test.py
index 7bb89a04e..7bb89a04e 100644..100755
--- a/tests/signals/pysignal_test.py
+++ b/tests/signals/pysignal_test.py
diff --git a/tests/signals/qobject_destroyed_test.py b/tests/signals/qobject_destroyed_test.py
index 01d1b5886..01d1b5886 100644..100755
--- a/tests/signals/qobject_destroyed_test.py
+++ b/tests/signals/qobject_destroyed_test.py
diff --git a/tests/signals/qobject_receivers_test.py b/tests/signals/qobject_receivers_test.py
index cb4c9ced8..cb4c9ced8 100644..100755
--- a/tests/signals/qobject_receivers_test.py
+++ b/tests/signals/qobject_receivers_test.py
diff --git a/tests/signals/segfault_proxyparent_test.py b/tests/signals/segfault_proxyparent_test.py
index 2b41f67c4..2b41f67c4 100644..100755
--- a/tests/signals/segfault_proxyparent_test.py
+++ b/tests/signals/segfault_proxyparent_test.py
diff --git a/tests/signals/self_connect_test.py b/tests/signals/self_connect_test.py
index f4d90c6bb..f4d90c6bb 100644..100755
--- a/tests/signals/self_connect_test.py
+++ b/tests/signals/self_connect_test.py
diff --git a/tests/signals/short_circuit_test.py b/tests/signals/short_circuit_test.py
index e36420cad..e36420cad 100644..100755
--- a/tests/signals/short_circuit_test.py
+++ b/tests/signals/short_circuit_test.py
diff --git a/tests/signals/signal2signal_connect_test.py b/tests/signals/signal2signal_connect_test.py
index bdc2328bf..bdc2328bf 100644..100755
--- a/tests/signals/signal2signal_connect_test.py
+++ b/tests/signals/signal2signal_connect_test.py
diff --git a/tests/signals/signal_autoconnect_test.py b/tests/signals/signal_autoconnect_test.py
index d3e74910f..d3e74910f 100644..100755
--- a/tests/signals/signal_autoconnect_test.py
+++ b/tests/signals/signal_autoconnect_test.py
diff --git a/tests/signals/signal_connectiontype_support.py b/tests/signals/signal_connectiontype_support.py
index d0c35c53a..d0c35c53a 100644..100755
--- a/tests/signals/signal_connectiontype_support.py
+++ b/tests/signals/signal_connectiontype_support.py
diff --git a/tests/signals/signal_emission_gui_test.py b/tests/signals/signal_emission_gui_test.py
index 6ae4ceb2b..6ae4ceb2b 100644..100755
--- a/tests/signals/signal_emission_gui_test.py
+++ b/tests/signals/signal_emission_gui_test.py
diff --git a/tests/signals/signal_emission_test.py b/tests/signals/signal_emission_test.py
index a8dd4fdc0..a8dd4fdc0 100644..100755
--- a/tests/signals/signal_emission_test.py
+++ b/tests/signals/signal_emission_test.py
diff --git a/tests/signals/signal_func_test.py b/tests/signals/signal_func_test.py
index 39bd1b293..39bd1b293 100644..100755
--- a/tests/signals/signal_func_test.py
+++ b/tests/signals/signal_func_test.py
diff --git a/tests/signals/signal_manager_refcount_test.py b/tests/signals/signal_manager_refcount_test.py
index 191ce9d63..191ce9d63 100644..100755
--- a/tests/signals/signal_manager_refcount_test.py
+++ b/tests/signals/signal_manager_refcount_test.py
diff --git a/tests/signals/signal_object_test.py b/tests/signals/signal_object_test.py
index 614c0e602..614c0e602 100644..100755
--- a/tests/signals/signal_object_test.py
+++ b/tests/signals/signal_object_test.py
diff --git a/tests/signals/signal_with_primitive_type_test.py b/tests/signals/signal_with_primitive_type_test.py
index 96ff353cc..96ff353cc 100644..100755
--- a/tests/signals/signal_with_primitive_type_test.py
+++ b/tests/signals/signal_with_primitive_type_test.py
diff --git a/tests/signals/slot_reference_count_test.py b/tests/signals/slot_reference_count_test.py
index 62037f28c..62037f28c 100644..100755
--- a/tests/signals/slot_reference_count_test.py
+++ b/tests/signals/slot_reference_count_test.py
diff --git a/tests/signals/static_metaobject_test.py b/tests/signals/static_metaobject_test.py
index bce711f85..bce711f85 100644..100755
--- a/tests/signals/static_metaobject_test.py
+++ b/tests/signals/static_metaobject_test.py
diff --git a/tests/signals/upstream_segfault_test.py b/tests/signals/upstream_segfault_test.py
index 793b04b1c..793b04b1c 100644..100755
--- a/tests/signals/upstream_segfault_test.py
+++ b/tests/signals/upstream_segfault_test.py