]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make the test link (moving renamedialog to libdolphinprivate since we'll need that...
authorDavid Faure <faure@kde.org>
Sat, 19 May 2007 08:03:39 +0000 (08:03 +0000)
committerDavid Faure <faure@kde.org>
Sat, 19 May 2007 08:03:39 +0000 (08:03 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=666229

src/CMakeLists.txt
src/renamedialog.h
src/tests/CMakeLists.txt
src/tests/renamedialogtest.cpp

index 595146d5b516478df8146bb76a79b79cfc29e422..31e6779a3ba0aec35e26cc4967e5c4069042ad89 100644 (file)
@@ -1,7 +1,7 @@
 
 add_subdirectory( pics )
 add_subdirectory( servicemenus )
 
 add_subdirectory( pics )
 add_subdirectory( servicemenus )
-#add_subdirectory( tests )
+add_subdirectory( tests )
 
 include_directories( ${CMAKE_SOURCE_DIR}/libkonq ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
 
 
 include_directories( ${CMAKE_SOURCE_DIR}/libkonq ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
 
@@ -18,6 +18,7 @@ set(dolphinprivate_LIB_SRCS
     dolphinsettings.cpp
     viewproperties.cpp
     dolphinsortfilterproxymodel.cpp
     dolphinsettings.cpp
     viewproperties.cpp
     dolphinsortfilterproxymodel.cpp
+    renamedialog.cpp
     )
 
 kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
     )
 
 kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
@@ -62,7 +63,6 @@ set(dolphin_SRCS
    main.cpp
    metadatawidget.cpp
    pixmapviewer.cpp
    main.cpp
    metadatawidget.cpp
    pixmapviewer.cpp
-   renamedialog.cpp
    settingspagebase.cpp
    sidebarpage.cpp
    statusbarspaceinfo.cpp
    settingspagebase.cpp
    sidebarpage.cpp
    statusbarspaceinfo.cpp
index b99fed29179b7ef1663eeb619d9aba577433be9f..d6adb6f95ae15161d7066f1c6a505691aea34946 100644 (file)
 #ifndef RENAMEDIALOG_H
 #define RENAMEDIALOG_H
 
 #ifndef RENAMEDIALOG_H
 #define RENAMEDIALOG_H
 
+#include "libdolphin_export.h"
+
 #include <kdialog.h>
 #include <kurl.h>
 
 
 #include <kdialog.h>
 #include <kurl.h>
 
 
-
 class KLineEdit;
 
 /**
 class KLineEdit;
 
 /**
@@ -45,7 +46,7 @@ class KLineEdit;
  * }
  * \endcode
  */
  * }
  * \endcode
  */
-class RenameDialog : public KDialog
+class LIBDOLPHINPRIVATE_EXPORT RenameDialog : public KDialog
 {
     Q_OBJECT
 
 {
     Q_OBJECT
 
index 687d68d9c8695745c3bc623f7ed1a0fea2d0f274..3edf9ca21c593ecf8ce158b4db68db3a53ca0f32 100644 (file)
@@ -1,6 +1,6 @@
 if(KDE4_BUILD_TESTS)
 
 if(KDE4_BUILD_TESTS)
 
-  include_directories( ${CMAKE_SOURCE_DIR}/apps/dolphin/src )
+  include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
 
   # Tests don't need to go into toplevel/bin, they are fine in the current dir.
   set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
 
   # Tests don't need to go into toplevel/bin, they are fine in the current dir.
   set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
@@ -11,7 +11,9 @@ if(KDE4_BUILD_TESTS)
 
   kde4_add_executable(renamedialogtest RUN_UNINSTALLED renamedialogtest.cpp)
 
 
   kde4_add_executable(renamedialogtest RUN_UNINSTALLED renamedialogtest.cpp)
 
-  target_link_libraries(renamedialogtest dolphin ${QT_QTTEST_LIBRARY})
+  target_link_libraries(renamedialogtest dolphinprivate ${QT_QTTEST_LIBRARY})
+
+  add_test(dolphin-renamedialogtest ${EXECUTABLE_OUTPUT_PATH}/renamedialogtest)
 
   ############################################
 
 
   ############################################
 
index 8914bc067be5a646587958a425906061cf3e0129..6404420ffaf9a03656a807d2ccab313a962ea2a6 100644 (file)
@@ -43,3 +43,5 @@ void RenameDialogTest::testExtensionString()
     result = RenameDialog::extensionString("Image.tar.1.12.gz");
     QCOMPARE(result, QString(".tar.1.12.gz"));
 }
     result = RenameDialog::extensionString("Image.tar.1.12.gz");
     QCOMPARE(result, QString(".tar.1.12.gz"));
 }
+
+#include "renamedialogtest.moc"