1 function(add_unit_test_definitions targetName)
2 target_compile_definitions(${targetName} PUBLIC XESTIACAL_UNITTEST)
5 function(set_unit_test_file_permissions)
6 list(APPEND FILE_LIST iCalendarEvent-InvalidPermissions.vcf
7 iCalendarFreeBusy-InvalidPermissions.vcf
8 iCalendarJournal-InvalidPermissions.vcf
9 iCalendarTask-InvalidPermissions.vcf
10 iCalendarTimezone-InvalidPermissions.vcf)
12 foreach(FILE ${FILE_LIST})
13 string(CONCAT FILE_LOCATION ${CMAKE_SOURCE_DIR} "/tests/" ${FILE})
14 execute_process(COMMAND sh -c "chmod 000 ${FILE_LOCATION}")