mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-17 21:04:31 -04:00
Testing: test each module's config files
This commit is contained in:
parent
e9205125ea
commit
6000cbaae2
1 changed files with 7 additions and 1 deletions
|
@ -39,7 +39,13 @@ function( calamares_add_module_subdirectory )
|
|||
# message( " ${Green}FILES:${ColorReset} ${MODULE_FILES}" )
|
||||
message( " ${Green}MODULE_DESTINATION:${ColorReset} ${MODULE_DESTINATION}" )
|
||||
if( MODULE_CONFIG_FILES )
|
||||
if (INSTALL_CONFIG)
|
||||
if ( BUILD_TESTING )
|
||||
foreach( _config_file ${MODULE_CONFIG_FILES} )
|
||||
add_test(NAME config-${SUBDIRECTORY}
|
||||
COMMAND test_conf ${CMAKE_CURRENT_BINARY_DIR}/${SUBDIRECTORY}/${_config_file} )
|
||||
endforeach()
|
||||
endif()
|
||||
if ( INSTALL_CONFIG )
|
||||
message( " ${Green}CONFIGURATION_FILES:${ColorReset} ${MODULE_CONFIG_FILES} => ${MODULE_DATA_DESTINATION}" )
|
||||
else()
|
||||
message( " ${Green}CONFIGURATION_FILES:${ColorReset} ${MODULE_CONFIG_FILES} => [Skipping installation]" )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue