2015-10-31 12:01:45 +02:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../libkcddb
|
|
|
|
)
|
2015-09-03 22:21:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
MACRO(KCDDB_EXECUTABLE_TESTS)
|
2015-09-05 05:16:46 +00:00
|
|
|
FOREACH(_testname ${ARGN})
|
2015-09-06 14:43:27 +03:00
|
|
|
kde4_add_manual_test(kcddb-${_testname} ${_testname}.cpp)
|
2015-10-31 12:01:45 +02:00
|
|
|
target_link_libraries(kcddb-${_testname}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
2016-09-03 00:05:54 +00:00
|
|
|
${KDE4_KCDDB_LIBS}
|
2015-10-31 12:01:45 +02:00
|
|
|
${QT_QTTEST_LIBRARY}
|
|
|
|
)
|
2015-09-05 05:16:46 +00:00
|
|
|
ENDFOREACH(_testname)
|
2015-09-03 22:21:19 +00:00
|
|
|
ENDMACRO(KCDDB_EXECUTABLE_TESTS)
|
|
|
|
MACRO(KCDDB_UNIT_TESTS)
|
2015-09-05 05:16:46 +00:00
|
|
|
FOREACH(_testname ${ARGN})
|
|
|
|
kde4_add_test(kcddb-${_testname} ${_testname}.cpp)
|
2015-10-31 12:01:45 +02:00
|
|
|
target_link_libraries(kcddb-${_testname}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
2016-09-03 00:05:54 +00:00
|
|
|
${KDE4_KCDDB_LIBS}
|
2015-10-31 12:01:45 +02:00
|
|
|
${QT_QTTEST_LIBRARY}
|
|
|
|
)
|
2015-09-05 05:16:46 +00:00
|
|
|
ENDFOREACH(_testname)
|
2015-09-03 22:21:19 +00:00
|
|
|
ENDMACRO(KCDDB_UNIT_TESTS)
|
|
|
|
|
|
|
|
KCDDB_UNIT_TESTS(
|
|
|
|
asynchttplookuptest
|
|
|
|
asynccddblookuptest
|
|
|
|
synccddblookuptest
|
|
|
|
synchttplookuptest
|
|
|
|
utf8test
|
|
|
|
musicbrainztest
|
2015-09-05 05:35:08 +00:00
|
|
|
# FIXME: this test hangs
|
|
|
|
# asyncmusicbrainztest
|
2015-09-03 22:21:19 +00:00
|
|
|
cdinfotest
|
|
|
|
cachetest
|
|
|
|
musicbrainztest-severaldiscs
|
|
|
|
musicbrainztest-fulldate
|
|
|
|
)
|
|
|
|
|
|
|
|
KCDDB_EXECUTABLE_TESTS(
|
|
|
|
syncsmtpsubmittest
|
|
|
|
asyncsmtpsubmittest
|
|
|
|
asynchttpsubmittest
|
|
|
|
synchttpsubmittest
|
|
|
|
sitestest
|
|
|
|
)
|
|
|
|
|