[libcalamares] Switch tests to calamares_add_test()
This commit is contained in:
parent
51e135cfbd
commit
6719a41aef
@ -158,81 +158,48 @@ install( FILES ${utilsHeaders} DESTINATION include/libcalam
|
||||
### TESTING
|
||||
#
|
||||
#
|
||||
if ( ECM_FOUND AND BUILD_TESTING )
|
||||
ecm_add_test(
|
||||
utils/Tests.cpp
|
||||
TEST_NAME
|
||||
calamares_add_test(
|
||||
libcalamarestest
|
||||
LINK_LIBRARIES
|
||||
calamares
|
||||
Qt5::Core
|
||||
Qt5::Test
|
||||
SOURCES
|
||||
utils/Tests.cpp
|
||||
)
|
||||
calamares_automoc( libcalamarestest )
|
||||
|
||||
ecm_add_test(
|
||||
utils/TestPaths.cpp
|
||||
TEST_NAME
|
||||
calamares_add_test(
|
||||
libcalamarestestpaths
|
||||
LINK_LIBRARIES
|
||||
calamares
|
||||
Qt5::Core
|
||||
Qt5::Test
|
||||
SOURCES
|
||||
utils/TestPaths.cpp
|
||||
)
|
||||
calamares_automoc( libcalamarestestpaths )
|
||||
|
||||
|
||||
ecm_add_test(
|
||||
calamares_add_test(
|
||||
geoiptest
|
||||
SOURCES
|
||||
geoip/GeoIPTests.cpp
|
||||
${geoip_src}
|
||||
TEST_NAME
|
||||
geoiptest
|
||||
LINK_LIBRARIES
|
||||
calamares
|
||||
Qt5::Test
|
||||
)
|
||||
calamares_automoc( geoiptest )
|
||||
|
||||
ecm_add_test(
|
||||
partition/Tests.cpp
|
||||
TEST_NAME
|
||||
calamares_add_test(
|
||||
libcalamarespartitiontest
|
||||
LINK_LIBRARIES
|
||||
calamares
|
||||
Qt5::Test
|
||||
SOURCES
|
||||
partition/Tests.cpp
|
||||
)
|
||||
calamares_automoc( libcalamarespartitiontest )
|
||||
|
||||
ecm_add_test(
|
||||
locale/Tests.cpp
|
||||
TEST_NAME
|
||||
calamares_add_test(
|
||||
libcalamareslocaletest
|
||||
LINK_LIBRARIES
|
||||
calamares
|
||||
Qt5::Test
|
||||
SOURCES
|
||||
locale/Tests.cpp
|
||||
)
|
||||
calamares_automoc( libcalamareslocaletest )
|
||||
|
||||
ecm_add_test(
|
||||
network/Tests.cpp
|
||||
TEST_NAME
|
||||
calamares_add_test(
|
||||
libcalamaresnetworktest
|
||||
LINK_LIBRARIES
|
||||
calamares
|
||||
Qt5::Test
|
||||
SOURCES
|
||||
network/Tests.cpp
|
||||
)
|
||||
calamares_automoc( libcalamaresnetworktest )
|
||||
|
||||
ecm_add_test(
|
||||
modulesystem/Tests.cpp
|
||||
TEST_NAME
|
||||
calamares_add_test(
|
||||
libcalamaresmodulesystemtest
|
||||
LINK_LIBRARIES
|
||||
calamares
|
||||
Qt5::Test
|
||||
SOURCES
|
||||
modulesystem/Tests.cpp
|
||||
)
|
||||
calamares_automoc( libcalamaresmodulesystemtest )
|
||||
endif()
|
||||
|
||||
if( BUILD_TESTING )
|
||||
add_executable( test_geoip geoip/test_geoip.cpp ${geoip_src} )
|
||||
|
Loading…
Reference in New Issue
Block a user