[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
|
### TESTING
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
if ( ECM_FOUND AND BUILD_TESTING )
|
calamares_add_test(
|
||||||
ecm_add_test(
|
|
||||||
utils/Tests.cpp
|
|
||||||
TEST_NAME
|
|
||||||
libcalamarestest
|
libcalamarestest
|
||||||
LINK_LIBRARIES
|
SOURCES
|
||||||
calamares
|
utils/Tests.cpp
|
||||||
Qt5::Core
|
|
||||||
Qt5::Test
|
|
||||||
)
|
)
|
||||||
calamares_automoc( libcalamarestest )
|
|
||||||
|
|
||||||
ecm_add_test(
|
calamares_add_test(
|
||||||
utils/TestPaths.cpp
|
|
||||||
TEST_NAME
|
|
||||||
libcalamarestestpaths
|
libcalamarestestpaths
|
||||||
LINK_LIBRARIES
|
SOURCES
|
||||||
calamares
|
utils/TestPaths.cpp
|
||||||
Qt5::Core
|
|
||||||
Qt5::Test
|
|
||||||
)
|
)
|
||||||
calamares_automoc( libcalamarestestpaths )
|
|
||||||
|
|
||||||
|
calamares_add_test(
|
||||||
ecm_add_test(
|
geoiptest
|
||||||
|
SOURCES
|
||||||
geoip/GeoIPTests.cpp
|
geoip/GeoIPTests.cpp
|
||||||
${geoip_src}
|
${geoip_src}
|
||||||
TEST_NAME
|
|
||||||
geoiptest
|
|
||||||
LINK_LIBRARIES
|
|
||||||
calamares
|
|
||||||
Qt5::Test
|
|
||||||
)
|
)
|
||||||
calamares_automoc( geoiptest )
|
|
||||||
|
|
||||||
ecm_add_test(
|
calamares_add_test(
|
||||||
partition/Tests.cpp
|
|
||||||
TEST_NAME
|
|
||||||
libcalamarespartitiontest
|
libcalamarespartitiontest
|
||||||
LINK_LIBRARIES
|
SOURCES
|
||||||
calamares
|
partition/Tests.cpp
|
||||||
Qt5::Test
|
|
||||||
)
|
)
|
||||||
calamares_automoc( libcalamarespartitiontest )
|
|
||||||
|
|
||||||
ecm_add_test(
|
calamares_add_test(
|
||||||
locale/Tests.cpp
|
|
||||||
TEST_NAME
|
|
||||||
libcalamareslocaletest
|
libcalamareslocaletest
|
||||||
LINK_LIBRARIES
|
SOURCES
|
||||||
calamares
|
locale/Tests.cpp
|
||||||
Qt5::Test
|
|
||||||
)
|
)
|
||||||
calamares_automoc( libcalamareslocaletest )
|
|
||||||
|
|
||||||
ecm_add_test(
|
calamares_add_test(
|
||||||
network/Tests.cpp
|
|
||||||
TEST_NAME
|
|
||||||
libcalamaresnetworktest
|
libcalamaresnetworktest
|
||||||
LINK_LIBRARIES
|
SOURCES
|
||||||
calamares
|
network/Tests.cpp
|
||||||
Qt5::Test
|
|
||||||
)
|
)
|
||||||
calamares_automoc( libcalamaresnetworktest )
|
|
||||||
|
|
||||||
ecm_add_test(
|
calamares_add_test(
|
||||||
modulesystem/Tests.cpp
|
|
||||||
TEST_NAME
|
|
||||||
libcalamaresmodulesystemtest
|
libcalamaresmodulesystemtest
|
||||||
LINK_LIBRARIES
|
SOURCES
|
||||||
calamares
|
modulesystem/Tests.cpp
|
||||||
Qt5::Test
|
|
||||||
)
|
)
|
||||||
calamares_automoc( libcalamaresmodulesystemtest )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if( BUILD_TESTING )
|
if( BUILD_TESTING )
|
||||||
add_executable( test_geoip geoip/test_geoip.cpp ${geoip_src} )
|
add_executable( test_geoip geoip/test_geoip.cpp ${geoip_src} )
|
||||||
|
Loading…
Reference in New Issue
Block a user