summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Haumann <dhaumann@kde.org>2014-01-19 23:48:22 (GMT)
committerDominik Haumann <dhaumann@kde.org>2014-01-19 23:48:31 (GMT)
commit493d2eab17c4ce455df530899addb5fa1f9838fa (patch)
tree2f379ff6eb26bb4d53208d44828353d0039b7dbc
parenta5bfdaeef8271191838bd57809e23bee6e6d9f68 (diff)
move the plugin auto-test to the plugin to keep test locally
-rw-r--r--addons/kate/backtracebrowser/CMakeLists.txt3
-rw-r--r--addons/kate/backtracebrowser/autotests/CMakeLists.txt12
-rw-r--r--addons/kate/backtracebrowser/autotests/btbrowsertest.cpp (renamed from autotests/btbrowsertest.cpp)0
-rw-r--r--addons/kate/backtracebrowser/autotests/btbrowsertest.h (renamed from autotests/btbrowsertest.h)0
-rw-r--r--autotests/CMakeLists.txt8
5 files changed, 15 insertions, 8 deletions
diff --git a/addons/kate/backtracebrowser/CMakeLists.txt b/addons/kate/backtracebrowser/CMakeLists.txt
index 9e10ff5..7cbc9f7 100644
--- a/addons/kate/backtracebrowser/CMakeLists.txt
+++ b/addons/kate/backtracebrowser/CMakeLists.txt
@@ -24,3 +24,6 @@ target_link_libraries(katebacktracebrowserplugin
install( TARGETS katebacktracebrowserplugin DESTINATION ${PLUGIN_INSTALL_DIR} )
kservice_desktop_to_json (katebacktracebrowserplugin.desktop)
install( FILES katebacktracebrowserplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+############# unit tests ################
+ecm_optional_add_subdirectory (autotests)
diff --git a/addons/kate/backtracebrowser/autotests/CMakeLists.txt b/addons/kate/backtracebrowser/autotests/CMakeLists.txt
new file mode 100644
index 0000000..aae55f1
--- /dev/null
+++ b/addons/kate/backtracebrowser/autotests/CMakeLists.txt
@@ -0,0 +1,12 @@
+include(ECMMarkAsTest)
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+)
+
+# Plugin Kate Backtrace Browser
+set(BtBrowserSrc btbrowsertest.cpp ${CMAKE_SOURCE_DIR}/addons/kate/backtracebrowser/btparser.cpp)
+add_executable(btbrowser_test ${BtBrowserSrc})
+add_test(plugin-btbrowser_test btbrowser_test)
+target_link_libraries(btbrowser_test kdeinit_kate Qt5::Test)
+ecm_mark_as_test(btbrowser_test)
diff --git a/autotests/btbrowsertest.cpp b/addons/kate/backtracebrowser/autotests/btbrowsertest.cpp
index a184c3e..a184c3e 100644
--- a/autotests/btbrowsertest.cpp
+++ b/addons/kate/backtracebrowser/autotests/btbrowsertest.cpp
diff --git a/autotests/btbrowsertest.h b/addons/kate/backtracebrowser/autotests/btbrowsertest.h
index 0e942e2..0e942e2 100644
--- a/autotests/btbrowsertest.h
+++ b/addons/kate/backtracebrowser/autotests/btbrowsertest.h
diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt
index 76727ac..f975227 100644
--- a/autotests/CMakeLists.txt
+++ b/autotests/CMakeLists.txt
@@ -5,7 +5,6 @@ include_directories(
${CMAKE_SOURCE_DIR}/kate/app
${CMAKE_SOURCE_DIR}/kate/app/session
${CMAKE_SOURCE_DIR}/kate/filetree
- ${CMAKE_SOURCE_DIR}/addons/kate/backtracebrowser
)
macro(kate_executable_tests)
@@ -35,10 +34,3 @@ endmacro(filetree_executable_tests)
filetree_executable_tests(
filetree_model_test
)
-
-# Plugin Kate Backtrace Browser
-set(BtBrowserSrc btbrowsertest.cpp ${CMAKE_SOURCE_DIR}/addons/kate/backtracebrowser/btparser.cpp)
-add_executable(btbrowser_test ${BtBrowserSrc})
-add_test(plugin-btbrowser_test btbrowser_test)
-target_link_libraries(btbrowser_test kdeinit_kate Qt5::Test)
-ecm_mark_as_test(btbrowser_test)