Changeset View
Changeset View
Standalone View
Standalone View
tests/ECMGenerateExportHeaderTest/CMakeLists.txt
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | |||||
97 | 97 | | |||
98 | # test using the library, built with different EXCLUDE_DEPRECATED_BEFORE_AND_AT values, | 98 | # test using the library, built with different EXCLUDE_DEPRECATED_BEFORE_AND_AT values, | ||
99 | # while using different DISABLE_DEPRECATED_BEFORE_AND_AT values | 99 | # while using different DISABLE_DEPRECATED_BEFORE_AND_AT values | ||
100 | # TODO: test DEPRECATED_WARNINGS_SINCE | 100 | # TODO: test DEPRECATED_WARNINGS_SINCE | ||
101 | foreach(_group_test_mode ${group_test_modes}) | 101 | foreach(_group_test_mode ${group_test_modes}) | ||
102 | foreach(_exclude_index RANGE ${_last_index}) | 102 | foreach(_exclude_index RANGE ${_last_index}) | ||
103 | list(GET library_versions ${_exclude_index} _exclude_deprecated_before_and_at) | 103 | list(GET library_versions ${_exclude_index} _exclude_deprecated_before_and_at) | ||
104 | # using disabled API limit below the excluded API limit is not supported and | 104 | # using disabled API limit below the excluded API limit is not supported and | ||
105 | # catched by the code generated from the ecm_generate_export_header, | 105 | # caught by the code generated from the ecm_generate_export_header, | ||
106 | # so testing those combination will not work, so start from the excluded API limit | 106 | # so testing those combination will not work, so start from the excluded API limit | ||
107 | foreach(_disable_index RANGE ${_exclude_index} ${_last_index}) | 107 | foreach(_disable_index RANGE ${_exclude_index} ${_last_index}) | ||
108 | list(GET library_versions ${_disable_index} _disable_deprecated_before_and_at) | 108 | list(GET library_versions ${_disable_index} _disable_deprecated_before_and_at) | ||
109 | add_generate_export_header_consumer_disable_deprecated_before_and_at_test(${_disable_deprecated_before_and_at} ${_exclude_deprecated_before_and_at} ${_group_test_mode}) | 109 | add_generate_export_header_consumer_disable_deprecated_before_and_at_test(${_disable_deprecated_before_and_at} ${_exclude_deprecated_before_and_at} ${_group_test_mode}) | ||
110 | endforeach() | 110 | endforeach() | ||
111 | endforeach() | 111 | endforeach() | ||
112 | endforeach() | 112 | endforeach() | ||
113 | 113 | | |||
114 | # test with NO_DEPRECATED | 114 | # test with NO_DEPRECATED | ||
115 | foreach(_group_test_mode ${group_test_modes}) | 115 | foreach(_group_test_mode ${group_test_modes}) | ||
116 | foreach(_exclude_index RANGE ${_last_index}) | 116 | foreach(_exclude_index RANGE ${_last_index}) | ||
117 | list(GET library_versions ${_exclude_index} _exclude_deprecated_before_and_at) | 117 | list(GET library_versions ${_exclude_index} _exclude_deprecated_before_and_at) | ||
118 | add_generate_export_header_consumer_no_deprecated_test(${_exclude_deprecated_before_and_at} ${_group_test_mode}) | 118 | add_generate_export_header_consumer_no_deprecated_test(${_exclude_deprecated_before_and_at} ${_group_test_mode}) | ||
119 | endforeach() | 119 | endforeach() | ||
120 | endforeach() | 120 | endforeach() |