Commit a8012c1d authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊
Browse files

Fix tests with new ecm way

parent 9d9489c0
......@@ -18,7 +18,7 @@ set(QT_MIN_VERSION "5.15.0")
set (SOVERSION 6)
project(LIBKTORRENT VERSION ${RELEASE_SERVICE_VERSION})
cmake_policy(SET CMP0115 OLD)
# set some default settings
enable_testing()
......
set(datacheckertest_SRCS datacheckertest.cpp)
add_executable(datacheckertest ${datacheckertest_SRCS})
add_test(datacheckertest datacheckertest)
ecm_mark_as_test(datacheckertest)
target_link_libraries(datacheckertest Qt5::Test testlib KF5::Torrent)
include(ECMAddTests)
ecm_add_test(datacheckertest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
set(rpcmsgtest_SRCS rpcmsgtest.cpp)
add_executable(rpcmsgtest ${rpcmsgtest_SRCS})
add_test(rpcmsgtest rpcmsgtest)
ecm_mark_as_test(rpcmsgtest)
target_link_libraries(rpcmsgtest Qt5::Test testlib KF5::Torrent)
set(keytest_SRCS keytest.cpp)
add_executable(keytest ${keytest_SRCS})
add_test(keytest keytest)
ecm_mark_as_test(keytest)
target_link_libraries(keytest Qt5::Test testlib KF5::Torrent)
include(ECMAddTests)
ecm_add_test(rpcmsgtest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
ecm_add_test(keytest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
set(chunkmanagertest_SRCS chunkmanagertest.cpp)
add_executable(chunkmanagertest ${chunkmanagertest_SRCS})
add_test(chunkmanagertest chunkmanagertest)
ecm_mark_as_test(chunkmanagertest)
target_link_libraries(chunkmanagertest Qt5::Test testlib KF5::Torrent)
set(preallocationtest_SRCS preallocationtest.cpp)
add_executable(preallocationtest ${preallocationtest_SRCS})
add_test(preallocationtest preallocationtest)
ecm_mark_as_test(preallocationtest)
target_link_libraries(preallocationtest Qt5::Test testlib KF5::Torrent)
include(ECMAddTests)
ecm_add_test(chunkmanagertest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
ecm_add_test(preallocationtest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
\ No newline at end of file
set(streamingchunkselectortest_SRCS streamingchunkselectortest.cpp)
add_executable(streamingchunkselectortest ${streamingchunkselectortest_SRCS})
add_test(streamingchunkselectortest streamingchunkselectortest)
ecm_mark_as_test(streamingchunkselectortest)
target_link_libraries( streamingchunkselectortest Qt5::Test testlib KF5::Torrent)
include(ECMAddTests)
ecm_add_test(streamingchunkselectortest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
set(magnetlinktest_SRCS magnetlinktest.cpp)
include(ECMAddTests)
ecm_add_test(magnetlinktest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
add_executable(magnetlinktest ${magnetlinktest_SRCS})
add_test(magnetlinktest magnetlinktest)
ecm_mark_as_test(magnetlinktest)
target_link_libraries( magnetlinktest Qt5::Test KF5::Torrent)
set(rc4encryptortest_SRCS rc4encryptortest.cpp)
add_executable(rc4encryptortest ${rc4encryptortest_SRCS})
add_test(rc4encryptortest rc4encryptortest)
ecm_mark_as_test(rc4encryptortest)
target_link_libraries( rc4encryptortest Qt5::Test KF5::Torrent)
include(ECMAddTests)
ecm_add_test(rc4encryptortest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
set(polltest_SRCS polltest.cpp)
add_executable(polltest ${polltest_SRCS})
add_test(polltest polltest)
ecm_mark_as_test(polltest)
target_link_libraries( polltest Qt5::Test KF5::Torrent)
include(ECMAddTests)
ecm_add_test(polltest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(wakeuppipetest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
set(wakeuppipetest_SRCS wakeuppipetest.cpp)
add_executable(wakeuppipetest ${wakeuppipetest_SRCS})
add_test(wakeuppipetest wakeuppipetest)
ecm_mark_as_test(wakeuppipetest)
target_link_libraries( wakeuppipetest Qt5::Test KF5::Torrent)
set(superseedtest_SRCS superseedtest.cpp)
add_executable(superseedtest ${superseedtest_SRCS})
add_test(superseedtest superseedtest)
ecm_mark_as_test(superseedtest)
target_link_libraries( superseedtest Qt5::Test KF5::Torrent)
set(packetreadertest_SRCS packetreadertest.cpp)
add_executable(packetreadertest ${packetreadertest_SRCS})
add_test(packetreadertest packetreadertest)
ecm_mark_as_test(packetreadertest)
target_link_libraries(packetreadertest Qt5::Test KF5::Torrent)
set(connectionlimittest_SRCS connectionlimittest.cpp)
add_executable(connectionlimittest ${connectionlimittest_SRCS})
add_test(connectionlimittest connectionlimittest)
ecm_mark_as_test(connectionlimittest)
target_link_libraries(connectionlimittest Qt5::Test KF5::Torrent)
set(accessmanagertest_SRCS accessmanagertest.cpp)
add_executable(accessmanagertest ${accessmanagertest_SRCS})
add_test(accessmanagertest accessmanagertest)
ecm_mark_as_test(accessmanagertest)
target_link_libraries(accessmanagertest Qt5::Test KF5::Torrent)
include(ECMAddTests)
ecm_add_test(superseedtest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(packetreadertest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(connectionlimittest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(accessmanagertest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
set(statsfiletest_SRCS statsfiletest.cpp)
add_executable(statsfiletest ${statsfiletest_SRCS})
add_test(statsfiletest statsfiletest)
ecm_mark_as_test(statsfiletest)
target_link_libraries( statsfiletest Qt5::Test KF5::Torrent)
include(ECMAddTests)
set(torrentfilestreamtest_SRCS torrentfilestreamtest.cpp)
add_executable(torrentfilestreamtest ${torrentfilestreamtest_SRCS})
add_test(torrentfilestreamtest torrentfilestreamtest)
ecm_mark_as_test(torrentfilestreamtest)
target_link_libraries( torrentfilestreamtest Qt5::Test testlib KF5::Torrent)
set(torrentfilestreammultitest_SRCS torrentfilestreammultitest.cpp)
add_executable(torrentfilestreammultitest ${torrentfilestreammultitest_SRCS})
add_test(torrentfilestreammultitest torrentfilestreammultitest)
ecm_mark_as_test(torrentfilestreammultitest)
target_link_libraries( torrentfilestreammultitest Qt5::Test testlib KF5::Torrent)
ecm_add_test(statsfiletest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(torrentfilestreamtest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
ecm_add_test(torrentfilestreammultitest.cpp LINK_LIBRARIES testlib KF5::Torrent Qt5::Test)
set(circularbuffertest_SRCS circularbuffertest.cpp)
add_executable(circularbuffertest ${circularbuffertest_SRCS})
add_test(circularbuffertest circularbuffertest)
ecm_mark_as_test(circularbuffertest)
target_link_libraries( circularbuffertest Qt5::Test KF5::Torrent)
include(ECMAddTests)
ecm_add_test(circularbuffertest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
if(NOT MSVC)
set(signalcatchertest_SRCS signalcatchertest.cpp)
add_executable(signalcatchertest ${signalcatchertest_SRCS})
add_test(signalcatchertest signalcatchertest)
ecm_mark_as_test(signalcatchertest)
target_link_libraries( signalcatchertest Qt5::Test KF5::Torrent)
ecm_add_test(signalcatchertest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
endif(NOT MSVC)
set(resourcemanagertest_SRCS resourcemanagertest.cpp)
add_executable(resourcemanagertest ${resourcemanagertest_SRCS})
add_test(resourcemanagertest resourcemanagertest)
ecm_mark_as_test(resourcemanagertest)
target_link_libraries( resourcemanagertest Qt5::Test KF5::Torrent)
set(fileopstest_SRCS fileopstest.cpp)
add_executable(fileopstest ${fileopstest_SRCS})
add_test(fileopstest fileopstest)
ecm_mark_as_test(fileopstest)
target_link_libraries( fileopstest Qt5::Test KF5::Torrent)
set(bufferpooltest_SRCS bufferpooltest.cpp)
add_executable(bufferpooltest ${bufferpooltest_SRCS})
add_test(bufferpooltest bufferpooltest)
ecm_mark_as_test(bufferpooltest)
target_link_libraries( bufferpooltest Qt5::Test KF5::Torrent)
ecm_add_test(resourcemanagertest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(fileopstest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(bufferpooltest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
set(localwindowtest_SRCS localwindowtest.cpp)
add_executable(localwindowtest ${localwindowtest_SRCS})
add_test(localwindowtest localwindowtest)
ecm_mark_as_test(localwindowtest)
target_link_libraries( localwindowtest Qt5::Test KF5::Torrent)
set(remotewindowtest_SRCS remotewindowtest.cpp)
add_executable(remotewindowtest ${remotewindowtest_SRCS})
add_test(remotewindowtest remotewindowtest)
ecm_mark_as_test(remotewindowtest)
target_link_libraries( remotewindowtest Qt5::Test KF5::Torrent)
set(connectiontest_SRCS connectiontest.cpp)
add_executable(connectiontest ${connectiontest_SRCS})
add_test(connectiontest connectiontest)
ecm_mark_as_test(connectiontest)
target_link_libraries( connectiontest Qt5::Test KF5::Torrent)
set(sendtest_SRCS sendtest.cpp)
add_executable(sendtest ${sendtest_SRCS})
add_test(sendtest sendtest)
ecm_mark_as_test(sendtest)
target_link_libraries( sendtest Qt5::Test KF5::Torrent)
set(connecttest_SRCS connecttest.cpp)
add_executable(connecttest ${connecttest_SRCS})
add_test(connecttest connecttest)
ecm_mark_as_test(connecttest)
target_link_libraries( connecttest Qt5::Test KF5::Torrent)
set(transmittest_SRCS transmittest.cpp)
add_executable(transmittest ${transmittest_SRCS})
add_test(transmittest transmittest)
ecm_mark_as_test(transmittest)
target_link_libraries( transmittest Qt5::Test KF5::Torrent)
set(packetlosstest_SRCS packetlosstest.cpp)
add_executable(packetlosstest ${packetlosstest_SRCS})
add_test(packetlosstest packetlosstest)
ecm_mark_as_test(packetlosstest)
target_link_libraries( packetlosstest Qt5::Test KF5::Torrent)
set(fintest_SRCS fintest.cpp)
add_executable(fintest ${fintest_SRCS})
add_test(fintest fintest)
ecm_mark_as_test(fintest)
target_link_libraries( fintest Qt5::Test KF5::Torrent)
set(sockettest_SRCS sockettest.cpp)
add_executable(sockettest ${sockettest_SRCS})
add_test(sockettest sockettest)
ecm_mark_as_test(sockettest)
target_link_libraries( sockettest Qt5::Test KF5::Torrent)
set(utppolltest_SRCS utppolltest.cpp)
add_executable(utppolltest ${utppolltest_SRCS})
add_test(utppolltest utppolltest)
ecm_mark_as_test(utppolltest)
target_link_libraries( utppolltest Qt5::Test KF5::Torrent)
set(delaywindowtest_SRCS delaywindowtest.cpp)
add_executable(delaywindowtest ${delaywindowtest_SRCS})
add_test(delaywindowtest delaywindowtest)
ecm_mark_as_test(delaywindowtest)
target_link_libraries( delaywindowtest Qt5::Test KF5::Torrent)
set(packetbuffertest_SRCS packetbuffertest.cpp)
add_executable(packetbuffertest ${packetbuffertest_SRCS})
add_test(packetbuffertest packetbuffertest)
ecm_mark_as_test(packetbuffertest)
target_link_libraries( packetbuffertest Qt5::Test KF5::Torrent)
include(ECMAddTests)
ecm_add_test(localwindowtest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(remotewindowtest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(connectiontest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(sendtest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(connecttest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(transmittest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(packetlosstest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(fintest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(sockettest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(utppolltest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(delaywindowtest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
ecm_add_test(packetbuffertest.cpp LINK_LIBRARIES KF5::Torrent Qt5::Test)
Markdown is supported
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