summaryrefslogtreecommitdiffstats
path: root/libkcal/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-03-29 23:04:07 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-04-01 18:36:29 +0200
commite18728a16f6a6be28b077ccfc09f4a05ae8b3905 (patch)
treebbdceac027c4822c92223e4d5e21c4b1567631cc /libkcal/tests/CMakeLists.txt
parent27b2114fed33b52e9e4b1b03652ac345c354155f (diff)
downloadtdepim-e18728a16f6a6be28b077ccfc09f4a05ae8b3905.tar.gz
tdepim-e18728a16f6a6be28b077ccfc09f4a05ae8b3905.zip
Disabled libical tests if libical version is less than 1.0.
On old libical versions, DST change date is wrong and this would fail some of the tests. This is not a bug in TDE but in old libical libraries. Starting from libical 1.0, the bug seems to have been fixed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit b1b5ff52bea5c734e3f0d77a0a08aff4037fcc5d)
Diffstat (limited to 'libkcal/tests/CMakeLists.txt')
-rw-r--r--libkcal/tests/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/libkcal/tests/CMakeLists.txt b/libkcal/tests/CMakeLists.txt
index 3f3603d45..4ae85e5ba 100644
--- a/libkcal/tests/CMakeLists.txt
+++ b/libkcal/tests/CMakeLists.txt
@@ -74,6 +74,12 @@ foreach( _test_name ${_all_tests} )
list( GET ${_test_name} 1 _test_id )
list( GET ${_test_name} 2 _test_search_filter )
file( GLOB_RECURSE _test_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_test_search_filter} )
+ # skip some libical tests if libical < 1.0, due to bug in old libical versions
+ if( LIBICAL_LESS_1_0 )
+ list( REMOVE_ITEM _test_files data/RecurrenceRule/LibICal/LibICal_TestCase15.ics )
+ list( REMOVE_ITEM _test_files data/RecurrenceRule/LibICal/LibICal_TestCase54.ics )
+ list( REMOVE_ITEM _test_files data/RecurrenceRule/LibICal/LibICal_TestCase55.ics )
+ endif( )
foreach( _test_file ${_test_files} )
add_test(
${_test_executable}__${_test_id}__${_test_file}__