diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2016-12-21 01:09:27 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-01-29 02:48:50 +0100 |
commit | 86921d65c5c218a2c721d905a93885cf2fe9b7b7 (patch) | |
tree | 617bb19f28f8fbff084e9d58ada0e037edb861e1 /tdeio/tdefile/tests | |
parent | de48b4a218391da82d8bb725e5b8cb3038155065 (diff) | |
download | tdelibs-86921d65c5c218a2c721d905a93885cf2fe9b7b7.tar.gz tdelibs-86921d65c5c218a2c721d905a93885cf2fe9b7b7.zip |
tdeio: add tests
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit ed74769bfaae171809c0bc1a10a8ba0f6ff8895f)
Diffstat (limited to 'tdeio/tdefile/tests')
-rw-r--r-- | tdeio/tdefile/tests/CMakeLists.txt | 40 | ||||
-rw-r--r-- | tdeio/tdefile/tests/kcustommenueditortest.cpp | 2 | ||||
-rw-r--r-- | tdeio/tdefile/tests/kdirselectdialogtest.cpp | 2 | ||||
-rw-r--r-- | tdeio/tdefile/tests/kfstest.cpp | 2 | ||||
-rw-r--r-- | tdeio/tdefile/tests/kicondialogtest.cpp | 2 | ||||
-rw-r--r-- | tdeio/tdefile/tests/kopenwithtest.cpp | 2 | ||||
-rw-r--r-- | tdeio/tdefile/tests/kurlrequestertest.cpp | 2 | ||||
-rw-r--r-- | tdeio/tdefile/tests/tdefilenotifytest.cpp (renamed from tdeio/tdefile/tests/knotifytest.cpp) | 2 | ||||
-rw-r--r-- | tdeio/tdefile/tests/tdefiletreeviewtest.cpp | 2 |
9 files changed, 48 insertions, 8 deletions
diff --git a/tdeio/tdefile/tests/CMakeLists.txt b/tdeio/tdefile/tests/CMakeLists.txt new file mode 100644 index 000000000..4c8c0dcce --- /dev/null +++ b/tdeio/tdefile/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}/tdecore + ${CMAKE_SOURCE_DIR}/tdecore + ${CMAKE_SOURCE_DIR}/tdeui + ${CMAKE_SOURCE_DIR}/tdeio + ${CMAKE_SOURCE_DIR}/tdeio/tdefile + ${CMAKE_SOURCE_DIR}/tdeio/tdeio + ${CMAKE_BINARY_DIR}/tdeio/tdefile +) + +link_directories( + ${TDECORE_LIBRARY_DIRS} +) + +tde_add_check_executable( kurlrequestertest LINK tdeio-shared ) +tde_add_check_executable( kopenwithtest LINK tdeio-shared ) +tde_add_check_executable( kdirselectdialogtest LINK tdeio-shared ) +tde_add_check_executable( kicondialogtest LINK tdeio-shared ) +tde_add_check_executable( kcustommenueditortest LINK tdeio-shared ) +tde_add_check_executable( tdefilenotifytest LINK tdeio-shared ) + +tde_add_check_executable( tdefiletreeviewtest AUTOMOC LINK tdeio-shared ) + +tde_add_check_executable( kfstest AUTOMOC + SOURCES kfstest.cpp kfdtest.cpp LINK tdeio-shared ) diff --git a/tdeio/tdefile/tests/kcustommenueditortest.cpp b/tdeio/tdefile/tests/kcustommenueditortest.cpp index 9e2189406..97e906fbe 100644 --- a/tdeio/tdefile/tests/kcustommenueditortest.cpp +++ b/tdeio/tdefile/tests/kcustommenueditortest.cpp @@ -6,7 +6,7 @@ int main(int argc, char** argv) { TDELocale::setMainCatalogue("tdelibs"); - TDEApplication app(argc, argv, "KCustomMenuEditorTest"); + TDEApplication app(argc, argv, "KCustomMenuEditorTest", true); KCustomMenuEditor editor(0); TDEConfig *cfg = new TDEConfig("kdesktop_custom_menu2"); editor.load(cfg); diff --git a/tdeio/tdefile/tests/kdirselectdialogtest.cpp b/tdeio/tdefile/tests/kdirselectdialogtest.cpp index c1178c3bc..71adee9a8 100644 --- a/tdeio/tdefile/tests/kdirselectdialogtest.cpp +++ b/tdeio/tdefile/tests/kdirselectdialogtest.cpp @@ -5,7 +5,7 @@ int main( int argc, char **argv ) { - TDEApplication app(argc, argv, "kdirselectdialogtest"); + TDEApplication app(argc, argv, "kdirselectdialogtest", true); KURL u = KDirSelectDialog::selectDirectory( (argc >= 1) ? argv[1] : TQString::null ); if ( u.isValid() ) diff --git a/tdeio/tdefile/tests/kfstest.cpp b/tdeio/tdefile/tests/kfstest.cpp index ada8d825e..021fdb3a3 100644 --- a/tdeio/tdefile/tests/kfstest.cpp +++ b/tdeio/tdefile/tests/kfstest.cpp @@ -44,7 +44,7 @@ int main(int argc, char **argv) { - TDEApplication a(argc, argv, "kfstest"); + TDEApplication a(argc, argv, "kfstest", true); TQString name1; TQStringList names; diff --git a/tdeio/tdefile/tests/kicondialogtest.cpp b/tdeio/tdefile/tests/kicondialogtest.cpp index 3000e89a0..b516ee07d 100644 --- a/tdeio/tdefile/tests/kicondialogtest.cpp +++ b/tdeio/tdefile/tests/kicondialogtest.cpp @@ -3,7 +3,7 @@ int main( int argc, char **argv ) { - TDEApplication app( argc, argv, "kicondialogtest" ); + TDEApplication app( argc, argv, "kicondialogtest", true ); // TDEIconDialog::getIcon(); diff --git a/tdeio/tdefile/tests/kopenwithtest.cpp b/tdeio/tdefile/tests/kopenwithtest.cpp index 925aa7625..fe7ae3986 100644 --- a/tdeio/tdefile/tests/kopenwithtest.cpp +++ b/tdeio/tdefile/tests/kopenwithtest.cpp @@ -28,7 +28,7 @@ int main(int argc, char **argv) { - TDEApplication app(argc, argv, "kopenwithtest"); + TDEApplication app(argc, argv, "kopenwithtest", true); KURL::List list; list += KURL("file:///tmp/testfile.txt"); diff --git a/tdeio/tdefile/tests/kurlrequestertest.cpp b/tdeio/tdefile/tests/kurlrequestertest.cpp index 829055304..023603082 100644 --- a/tdeio/tdefile/tests/kurlrequestertest.cpp +++ b/tdeio/tdefile/tests/kurlrequestertest.cpp @@ -5,7 +5,7 @@ int main( int argc, char **argv ) { - TDEApplication app( argc, argv, "kurlrequestertest" ); + TDEApplication app( argc, argv, "kurlrequestertest", true ); KURL url = KURLRequesterDlg::getURL( "ftp://ftp.kde.org" ); tqDebug( "Selected url: %s", url.url().latin1()); diff --git a/tdeio/tdefile/tests/knotifytest.cpp b/tdeio/tdefile/tests/tdefilenotifytest.cpp index 1716a86a3..10dd5959d 100644 --- a/tdeio/tdefile/tests/knotifytest.cpp +++ b/tdeio/tdefile/tests/tdefilenotifytest.cpp @@ -3,7 +3,7 @@ int main( int argc, char **argv ) { - TDEApplication app( argc, argv, "knotifytest" ); + TDEApplication app( argc, argv, "knotifytest", true ); KNotifyDialog *dlg = new KNotifyDialog(); dlg->addApplicationEvents( "twin" ); return dlg->exec(); diff --git a/tdeio/tdefile/tests/tdefiletreeviewtest.cpp b/tdeio/tdefile/tests/tdefiletreeviewtest.cpp index 9ff0199dc..da031eac2 100644 --- a/tdeio/tdefile/tests/tdefiletreeviewtest.cpp +++ b/tdeio/tdefile/tests/tdefiletreeviewtest.cpp @@ -134,7 +134,7 @@ void testFrame::slotSetChildCount( KFileTreeViewItem *item, int c ) int main(int argc, char **argv) { - TDEApplication a(argc, argv, "tdefiletreeviewtest"); + TDEApplication a(argc, argv, "tdefiletreeviewtest", true); TQString name1; TQStringList names; |