[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace] libksysguard/tests: Port some libksysguard tests away from kde4_
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2014-03-20 22:41:43
Message-ID: E1WQleh-0004PW-DP () scm ! kde ! org
[Download RAW message or body]

Git commit 95b1751b6c98abd97412c682a5fb7854d2638f93 by Aleix Pol.
Committed on 20/03/2014 at 17:42.
Pushed by apol into branch 'master'.

Port some libksysguard tests away from kde4_

M  +13   -16   libksysguard/tests/CMakeLists.txt

http://commits.kde.org/kde-workspace/95b1751b6c98abd97412c682a5fb7854d2638f=
93

diff --git a/libksysguard/tests/CMakeLists.txt b/libksysguard/tests/CMakeLi=
sts.txt
index 8b55618..81184b0 100644
--- a/libksysguard/tests/CMakeLists.txt
+++ b/libksysguard/tests/CMakeLists.txt
@@ -1,26 +1,23 @@
 include_directories(${libksysguard_SOURCE_DIR})
 if(Qt5WebKitWidgets_FOUND)
     # Process unit test
-    kde4_add_unit_test(processtest TESTNAME ksysguard-processtest processt=
est.cpp)
-    target_link_libraries(processtest KF5::ProcessUi Qt5::Test)
+    ecm_add_test(processtest.cpp TEST_NAME processtest
+                 LINK_LIBRARIES KF5::ProcessUi Qt5::Test)
 endif()
 =

-# KSignalPlotter benchmark
-set( signalplotterbenchmark_SRCS signalplotterbenchmark.cpp ../signalplott=
er/ksignalplotter.cpp)
-kde4_add_unit_test( signalplotterbenchmark TESTNAME ksysguard-signalplotte=
rtest ${signalplotterbenchmark_SRCS} )
-target_link_libraries( signalplotterbenchmark Qt5::Test Qt5::Widgets KF5::=
KDE4Support )
-
-
-# KGraphicsSignalPlotter benchmark
-set( graphicssignalplotterbenchmark_SRCS graphicssignalplotterbenchmark.cp=
p ../signalplotter/kgraphicssignalplotter.cpp)
-kde4_add_unit_test( graphicssignalplotterbenchmark TESTNAME ksysguard-sign=
alplottertest ${graphicssignalplotterbenchmark_SRCS} )
-target_link_libraries( graphicssignalplotterbenchmark Qt5::Test Qt5::Widge=
ts KF5::KDE4Support KF5::Plasma )
+ecm_add_test(signalplotterbenchmark.cpp ../signalplotter/ksignalplotter.cpp
+    TEST_NAME signalplotterbenchmark
+    LINK_LIBRARIES Qt5::Test Qt5::Widgets KF5::KDE4Support)
 =

+ecm_add_test(graphicssignalplotterbenchmark.cpp ../signalplotter/kgraphics=
signalplotter.cpp
+    TEST_NAME graphicssignalplotterbenchmark
+    LINK_LIBRARIES Qt5::Test Qt5::Widgets KF5::KDE4Support KF5::Plasma
+)
 =

-# KSignalPlotter unit test
-set( signalplottertest_SRCS signalplottertest.cpp ../signalplotter/ksignal=
plotter.cpp)
-kde4_add_unit_test( signalplottertest TESTNAME ksysguard-signalplottertest=
 ${signalplottertest_SRCS} )
-target_link_libraries( signalplottertest Qt5::Test Qt5::Widgets KF5::I18n =
KF5::KDE4Support )
+ecm_add_test(signalplottertest.cpp ../signalplotter/ksignalplotter.cpp
+    TEST_NAME signalplottertest
+    LINK_LIBRARIES Qt5::Test Qt5::Widgets KF5::I18n KF5::KDE4Support
+)
 =

 =

 set( ksysguarddtest_SRCS ksysguarddtest.cpp ${libksysguard_SOURCE_DIR}/ksg=
rd/SensorAgent.cpp ${libksysguard_SOURCE_DIR}/ksgrd/SensorManager.cpp ${lib=
ksysguard_SOURCE_DIR}/ksgrd/SensorSocketAgent.cpp ${libksysguard_SOURCE_DIR=
}/ksgrd/SensorShellAgent.cpp)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic