[libcalamares] Switch tests to calamares_add_test()

main
Adriaan de Groot 5 years ago
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
libcalamarestest
LINK_LIBRARIES
calamares
Qt5::Core
Qt5::Test
)
calamares_automoc( libcalamarestest )
ecm_add_test(
utils/TestPaths.cpp
TEST_NAME
libcalamarestestpaths
LINK_LIBRARIES
calamares
Qt5::Core
Qt5::Test
)
calamares_automoc( libcalamarestestpaths )
calamares_add_test(
libcalamarestest
SOURCES
utils/Tests.cpp
)
calamares_add_test(
libcalamarestestpaths
SOURCES
utils/TestPaths.cpp
)
ecm_add_test(
geoip/GeoIPTests.cpp
${geoip_src}
TEST_NAME
geoiptest
LINK_LIBRARIES
calamares
Qt5::Test
)
calamares_automoc( geoiptest )
ecm_add_test(
partition/Tests.cpp
TEST_NAME
libcalamarespartitiontest
LINK_LIBRARIES
calamares
Qt5::Test
)
calamares_automoc( libcalamarespartitiontest )
ecm_add_test(
locale/Tests.cpp
TEST_NAME
libcalamareslocaletest
LINK_LIBRARIES
calamares
Qt5::Test
)
calamares_automoc( libcalamareslocaletest )
ecm_add_test(
network/Tests.cpp
TEST_NAME
libcalamaresnetworktest
LINK_LIBRARIES
calamares
Qt5::Test
)
calamares_automoc( libcalamaresnetworktest )
ecm_add_test(
modulesystem/Tests.cpp
TEST_NAME
libcalamaresmodulesystemtest
LINK_LIBRARIES
calamares
Qt5::Test
)
calamares_automoc( libcalamaresmodulesystemtest )
endif()
calamares_add_test(
geoiptest
SOURCES
geoip/GeoIPTests.cpp
${geoip_src}
)
calamares_add_test(
libcalamarespartitiontest
SOURCES
partition/Tests.cpp
)
calamares_add_test(
libcalamareslocaletest
SOURCES
locale/Tests.cpp
)
calamares_add_test(
libcalamaresnetworktest
SOURCES
network/Tests.cpp
)
calamares_add_test(
libcalamaresmodulesystemtest
SOURCES
modulesystem/Tests.cpp
)
if( BUILD_TESTING )
add_executable( test_geoip geoip/test_geoip.cpp ${geoip_src} )

Loading…
Cancel
Save