Commit c9970aee authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use add_test signature where target command gets resolved to binary path

parent 3e81d510
......@@ -11,7 +11,7 @@ set(logindTest_SRCS
)
add_executable(logindTest ${logindTest_SRCS})
target_link_libraries(logindTest Qt5::DBus Qt5::Test KF5::I18n)
add_test(ksmserver-logindTest logindTest)
add_test(NAME ksmserver-logindTest COMMAND logindTest)
ecm_mark_as_test(logindTest)
#######################################
......@@ -19,7 +19,7 @@ ecm_mark_as_test(logindTest)
#######################################
add_executable(ksldTest ksldtest.cpp)
target_link_libraries(ksldTest Qt5::Test Qt5::Widgets KF5::IdleTime XCB::XTEST KScreenLocker)
add_test(ksmserver-ksldTest ksldTest)
add_test(NAME ksmserver-ksldTest COMMAND ksldTest)
ecm_mark_as_test(ksldTest)
#######################################
......@@ -52,7 +52,7 @@ target_link_libraries(x11LockerTest
XCB::XCB
XCB::KEYSYMS
)
add_test(ksmserver-x11LockerTest x11LockerTest)
add_test(NAME ksmserver-x11LockerTest COMMAND x11LockerTest)
ecm_mark_as_test(x11LockerTest)
#######################################
......@@ -65,5 +65,5 @@ target_link_libraries(noScreensTest
Qt5::Test
KF5::WaylandServer
)
add_test(ksld-noScreensTest noScreensTest)
add_test(NAME ksld-noScreensTest COMMAND noScreensTest)
ecm_mark_as_test(noScreensTest)
......@@ -17,14 +17,14 @@ set( authenticatorTest_SRCS
)
add_executable(authenticatorTest ${authenticatorTest_SRCS})
target_link_libraries(authenticatorTest Qt5::Test)
add_test(ksmserver-authenticatorTest authenticatorTest)
add_test(NAME ksmserver-authenticatorTest COMMAND authenticatorTest)
ecm_mark_as_test(authenticatorTest)
#######################################
# KillTest
#######################################
add_executable(killTest killtest.cpp)
add_test(kscreenlocker-killTest killTest)
add_test(NAME kscreenlocker-killTest COMMAND killTest)
ecm_mark_as_test(killTest)
target_link_libraries(killTest Qt5::Test)
......@@ -33,7 +33,7 @@ target_link_libraries(killTest Qt5::Test)
#######################################
if(HAVE_SECCOMP)
add_executable(seccompTest seccomp_test.cpp ../seccomp_filter.cpp ../kwinglplatform.cpp)
add_test(kscreenlocker-seccompTest seccompTest)
add_test(NAME kscreenlocker-seccompTest COMMAND seccompTest)
ecm_mark_as_test(seccompTest)
target_link_libraries(seccompTest
Qt5::Test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment