diff options
Diffstat (limited to 'kio/kfile/tests')
-rw-r--r-- | kio/kfile/tests/CMakeLists.txt | 40 | ||||
-rw-r--r-- | kio/kfile/tests/kcustommenueditortest.cpp | 2 | ||||
-rw-r--r-- | kio/kfile/tests/kdirselectdialogtest.cpp | 2 | ||||
-rw-r--r-- | kio/kfile/tests/kfilenotifytest.cpp (renamed from kio/kfile/tests/knotifytest.cpp) | 2 | ||||
-rw-r--r-- | kio/kfile/tests/kfiletreeviewtest.cpp | 2 | ||||
-rw-r--r-- | kio/kfile/tests/kfstest.cpp | 2 | ||||
-rw-r--r-- | kio/kfile/tests/kicondialogtest.cpp | 2 | ||||
-rw-r--r-- | kio/kfile/tests/kopenwithtest.cpp | 2 | ||||
-rw-r--r-- | kio/kfile/tests/kurlrequestertest.cpp | 2 |
9 files changed, 48 insertions, 8 deletions
diff --git a/kio/kfile/tests/CMakeLists.txt b/kio/kfile/tests/CMakeLists.txt new file mode 100644 index 000000000..8e99208ba --- /dev/null +++ b/kio/kfile/tests/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (C) 2016 Alexander Golubev +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_BINARY_DIR}/kio/kfile +) + +link_directories( + ${TDECORE_LIBRARY_DIRS} +) + +tde_add_check_executable( kurlrequestertest LINK kio-shared ) +tde_add_check_executable( kopenwithtest LINK kio-shared ) +tde_add_check_executable( kdirselectdialogtest LINK kio-shared ) +tde_add_check_executable( kicondialogtest LINK kio-shared ) +tde_add_check_executable( kcustommenueditortest LINK kio-shared ) +tde_add_check_executable( kfilenotifytest LINK kio-shared ) + +tde_add_check_executable( kfiletreeviewtest AUTOMOC LINK kio-shared ) + +tde_add_check_executable( kfstest AUTOMOC + SOURCES kfstest.cpp kfdtest.cpp LINK kio-shared ) diff --git a/kio/kfile/tests/kcustommenueditortest.cpp b/kio/kfile/tests/kcustommenueditortest.cpp index 532297d0c..1cd4cb291 100644 --- a/kio/kfile/tests/kcustommenueditortest.cpp +++ b/kio/kfile/tests/kcustommenueditortest.cpp @@ -6,7 +6,7 @@ int main(int argc, char** argv) { KLocale::setMainCatalogue("kdelibs"); - KApplication app(argc, argv, "KCustomMenuEditorTest"); + KApplication app(argc, argv, "KCustomMenuEditorTest", true); KCustomMenuEditor editor(0); KConfig *cfg = new KConfig("kdesktop_custom_menu2"); editor.load(cfg); diff --git a/kio/kfile/tests/kdirselectdialogtest.cpp b/kio/kfile/tests/kdirselectdialogtest.cpp index 47fcd02ca..48dd35ca9 100644 --- a/kio/kfile/tests/kdirselectdialogtest.cpp +++ b/kio/kfile/tests/kdirselectdialogtest.cpp @@ -5,7 +5,7 @@ int main( int argc, char **argv ) { - KApplication app(argc, argv, "kdirselectdialogtest"); + KApplication app(argc, argv, "kdirselectdialogtest", true); KURL u = KDirSelectDialog::selectDirectory( (argc >= 1) ? argv[1] : TQString::null ); if ( u.isValid() ) diff --git a/kio/kfile/tests/knotifytest.cpp b/kio/kfile/tests/kfilenotifytest.cpp index e27893589..e6ff1ef87 100644 --- a/kio/kfile/tests/knotifytest.cpp +++ b/kio/kfile/tests/kfilenotifytest.cpp @@ -3,7 +3,7 @@ int main( int argc, char **argv ) { - KApplication app( argc, argv, "knotifytest" ); + KApplication app( argc, argv, "knotifytest", true ); KNotifyDialog *dlg = new KNotifyDialog(); dlg->addApplicationEvents( "kwin" ); return dlg->exec(); diff --git a/kio/kfile/tests/kfiletreeviewtest.cpp b/kio/kfile/tests/kfiletreeviewtest.cpp index 5c520dd5d..8c7033ed6 100644 --- a/kio/kfile/tests/kfiletreeviewtest.cpp +++ b/kio/kfile/tests/kfiletreeviewtest.cpp @@ -134,7 +134,7 @@ void testFrame::slotSetChildCount( KFileTreeViewItem *item, int c ) int main(int argc, char **argv) { - KApplication a(argc, argv, "kfiletreeviewtest"); + KApplication a(argc, argv, "kfiletreeviewtest", true); TQString name1; TQStringList names; diff --git a/kio/kfile/tests/kfstest.cpp b/kio/kfile/tests/kfstest.cpp index b84cbc967..4157fba88 100644 --- a/kio/kfile/tests/kfstest.cpp +++ b/kio/kfile/tests/kfstest.cpp @@ -44,7 +44,7 @@ int main(int argc, char **argv) { - KApplication a(argc, argv, "kfstest"); + KApplication a(argc, argv, "kfstest", true); TQString name1; TQStringList names; diff --git a/kio/kfile/tests/kicondialogtest.cpp b/kio/kfile/tests/kicondialogtest.cpp index 23301b752..e3de3d587 100644 --- a/kio/kfile/tests/kicondialogtest.cpp +++ b/kio/kfile/tests/kicondialogtest.cpp @@ -3,7 +3,7 @@ int main( int argc, char **argv ) { - KApplication app( argc, argv, "kicondialogtest" ); + KApplication app( argc, argv, "kicondialogtest", true ); // KIconDialog::getIcon(); diff --git a/kio/kfile/tests/kopenwithtest.cpp b/kio/kfile/tests/kopenwithtest.cpp index ea348a94c..b072d4b83 100644 --- a/kio/kfile/tests/kopenwithtest.cpp +++ b/kio/kfile/tests/kopenwithtest.cpp @@ -28,7 +28,7 @@ int main(int argc, char **argv) { - KApplication app(argc, argv, "kopenwithtest"); + KApplication app(argc, argv, "kopenwithtest", true); KURL::List list; list += KURL("file:///tmp/testfile.txt"); diff --git a/kio/kfile/tests/kurlrequestertest.cpp b/kio/kfile/tests/kurlrequestertest.cpp index 9248eec5d..3ed8d1d18 100644 --- a/kio/kfile/tests/kurlrequestertest.cpp +++ b/kio/kfile/tests/kurlrequestertest.cpp @@ -5,7 +5,7 @@ int main( int argc, char **argv ) { - KApplication app( argc, argv, "kurlrequestertest" ); + KApplication app( argc, argv, "kurlrequestertest", true ); KURL url = KURLRequesterDlg::getURL( "ftp://ftp.kde.org" ); qDebug( "Selected url: %s", url.url().latin1()); |