aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-06-07 14:43:45 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-06-07 16:57:11 -0300
commitab918abc1e103e0ca86939f7d057e8a44ac8a4ef (patch)
tree53c6f57d089dcf5e145d766b1ceef704714046d8 /tests
parent471486732b03cbb42b884158604a59d5a18e8a35 (diff)
Created new unittest model.
Separete unittest for module. Only run unittest for compiled modules. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
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 ada5b7ae..d87414fd 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 00000000..536d4086
--- /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 96582f6c..96582f6c 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 2917232a..2917232a 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 ccc27c84..ccc27c84 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 3b2f7d9e..3b2f7d9e 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 e20c0c1b..e20c0c1b 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 f535c53d..f535c53d 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 1727ae6d..1727ae6d 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 510b8ef6..510b8ef6 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 05bd81e1..05bd81e1 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 0ae6e1d2..0ae6e1d2 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 117e50b9..117e50b9 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 b9a01ff6..b9a01ff6 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 168f22de..168f22de 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 4a20c04c..4a20c04c 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 20bba140..20bba140 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 a40724b0..a40724b0 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 365148d3..365148d3 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 d71ed2f2..d71ed2f2 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 49234486..49234486 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 e3f96386..e3f96386 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 07f23f09..07f23f09 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 adbdd68b..adbdd68b 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 580b5a7d..580b5a7d 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 1346c11e..1346c11e 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 bcf6dea3..bcf6dea3 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 fdcf6ec9..fdcf6ec9 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 31b5db95..31b5db95 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 f1bff8e8..f1bff8e8 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 667e763a..667e763a 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 015d1c92..015d1c92 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 930a082c..930a082c 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 44103758..44103758 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 8018fcda..8018fcda 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 9e02b0a4..9e02b0a4 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 4699fc60..4699fc60 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 33df2ac9..33df2ac9 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 530b870a..530b870a 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 a1749bab..a1749bab 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 b46207d8..b46207d8 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 5aa70530..5aa70530 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 dfce7693..dfce7693 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 b01c68ba..b01c68ba 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 3c5f5be0..3c5f5be0 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 8f3350a6..8f3350a6 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 4fb060b7..4fb060b7 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 ad0ea3a1..ad0ea3a1 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 97d0a3b0..97d0a3b0 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 d7c9a4c4..d7c9a4c4 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 ce2449d1..ce2449d1 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 f8475d09..f8475d09 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 6d7ae314..6d7ae314 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 3f0fb493..3f0fb493 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 03105168..03105168 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 2bd7f813..2bd7f813 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 13dc6516..13dc6516 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 fc634dd8..fc634dd8 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 edd7d77f..edd7d77f 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 410afb90..410afb90 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 96107ecc..96107ecc 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 8dfe3952..8dfe3952 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 3343a276..3343a276 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 909b4fa1..909b4fa1 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 14243a11..14243a11 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 82da5556..82da5556 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 5c23b404..5c23b404 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 cea17b44..cea17b44 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 132c8db1..132c8db1 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 1f9de78f..1f9de78f 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 9d920a43..9d920a43 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 e2b66730..9eea8290 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 870c8c50..870c8c50 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 b9fcf41b..b9fcf41b 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 d1ba49bd..d1ba49bd 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 94db1fee..94db1fee 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 f0bb883e..f0bb883e 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 00000000..4896010b
--- /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 4b849e07..4b849e07 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 a03a484a..a03a484a 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 8101c5f0..8101c5f0 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 ec5597df..ec5597df 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 00000000..fb6d8015
--- /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 7e20c459..7e20c459 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 b9ccdff7..b9ccdff7 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 cc7d18fd..cc7d18fd 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 3c182937..3c182937 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 64683a39..64683a39 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 d0962d5d..d0962d5d 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 de23c569..de23c569 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 02253908..02253908 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 8d0ba960..8d0ba960 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 7d6c024e..7d6c024e 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 c371492e..c371492e 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 72b810a9..72b810a9 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 9c959f9d..9c959f9d 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 cf11652a..cf11652a 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 3c2f11ba..3c2f11ba 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 dbb638fd..dbb638fd 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 02bce782..02bce782 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 7964d91d..7964d91d 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 b281c8a5..b281c8a5 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 43545a43..43545a43 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 3a856bc7..3a856bc7 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 98177e75..98177e75 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 c75f7125..c75f7125 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 8c6c34e0..8c6c34e0 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 a6342718..a6342718 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 ae773bb0..ae773bb0 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 eb6a4f39..eb6a4f39 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 8f96c518..8f96c518 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 fce145d5..fce145d5 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 7c87e23a..7c87e23a 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 37faf161..37faf161 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 47b112bf..47b112bf 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 8ccc1d35..8ccc1d35 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 ad1d1e47..ad1d1e47 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 f9e9b186..f9e9b186 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 48140946..48140946 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 98496087..98496087 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 0c582c34..0c582c34 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 2274d5e9..2274d5e9 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 c9cb3bc7..c9cb3bc7 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 d83d856d..d83d856d 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 1f435e6e..1f435e6e 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 da467e87..da467e87 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 0ea5cab8..0ea5cab8 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 143f99ca..143f99ca 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 442cbe2c..442cbe2c 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 1bcf566d..1bcf566d 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 dd0d2c6a..dd0d2c6a 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 138e4329..138e4329 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 c715396e..c715396e 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 a14311c1..a14311c1 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 b5498682..b5498682 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 60450f0d..60450f0d 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 65bd3220..65bd3220 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 4af9a013..4af9a013 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 15de37df..15de37df 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 c496e490..c496e490 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 d14ac9e9..d14ac9e9 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 29cce150..29cce150 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 00000000..d0ba2d80
--- /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 e2ff532a..e2ff532a 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 00000000..73bb316f
--- /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 013c1d40..013c1d40 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 a003f056..a003f056 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 00000000..62150eb7
--- /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 04d0a1e0..04d0a1e0 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 00000000..cae14708
--- /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 9a00e7e7..9a00e7e7 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 379ff5df..379ff5df 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 77f830e3..77f830e3 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 26cff7f6..26cff7f6 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 00000000..3064edfb
--- /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 ae23fbdf..ae23fbdf 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 00000000..b76a2629
--- /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 6ad27e00..6ad27e00 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 074d3df4..074d3df4 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 6ad27e00..6ad27e00 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 00000000..ee22737c
--- /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 e5253610..e5253610 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 00000000..a9446910
--- /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 49f22093..49f22093 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 00000000..6a9c9d56
--- /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 cec7fdaf..cec7fdaf 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 00000000..b1bdac0a
--- /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 e295cee6..e295cee6 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 382460ee..382460ee 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 00000000..9118b5b6
--- /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 60afe22b..60afe22b 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 6f599cef..6f599cef 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 fe3725ba..fe3725ba 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 00000000..54728656
--- /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 e7691eb6..e7691eb6 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 20796971..20796971 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 c06e437c..c06e437c 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 00000000..2c21bf87
--- /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 86aece7b..86aece7b 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 6c4d3f4e..6c4d3f4e 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 00000000..7f570f15
--- /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 5bab9755..5bab9755 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 00000000..1174709a
--- /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 db8783e9..00000000
--- 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 8671ce35..363fae57 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 00000000..3e596844
--- /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 b81c5682..25211671 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 db068d00..db068d00 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 3328bb5c..3328bb5c 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 e842ae2e..e842ae2e 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 dff743c8..dff743c8 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 72feac08..72feac08 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 5daeaab8..5daeaab8 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 7bb89a04..7bb89a04 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 01d1b588..01d1b588 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 cb4c9ced..cb4c9ced 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 2b41f67c..2b41f67c 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 f4d90c6b..f4d90c6b 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 e36420ca..e36420ca 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 bdc2328b..bdc2328b 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 d3e74910..d3e74910 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 d0c35c53..d0c35c53 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 6ae4ceb2..6ae4ceb2 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 a8dd4fdc..a8dd4fdc 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 39bd1b29..39bd1b29 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 191ce9d6..191ce9d6 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 614c0e60..614c0e60 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 96ff353c..96ff353c 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 62037f28..62037f28 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 bce711f8..bce711f8 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 793b04b1..793b04b1 100644..100755
--- a/tests/signals/upstream_segfault_test.py
+++ b/tests/signals/upstream_segfault_test.py