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 b1b5ff52be)
r14.0.x
Michele Calgaro 6 years ago committed by Slávek Banko
parent 27b2114fed
commit e18728a16f
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -16,6 +16,10 @@ if( LIBICAL_FOUND )
if( NOT (LIBICAL_VERSION VERSION_LESS "3.0") ) if( NOT (LIBICAL_VERSION VERSION_LESS "3.0") )
add_definitions(-DUSE_LIBICAL_3_0) add_definitions(-DUSE_LIBICAL_3_0)
endif( ) endif( )
# check for libical >= 1.0
if( LIBICAL_VERSION VERSION_LESS "1.0" )
set( LIBICAL_LESS_1_0 1 CACHE INTERNAL "" FORCE )
endif( )
# check for libical >= 0.46 # check for libical >= 0.46
if( NOT (LIBICAL_VERSION VERSION_LESS "0.46") ) if( NOT (LIBICAL_VERSION VERSION_LESS "0.46") )
add_definitions(-DUSE_LIBICAL_0_46) add_definitions(-DUSE_LIBICAL_0_46)

@ -74,6 +74,12 @@ foreach( _test_name ${_all_tests} )
list( GET ${_test_name} 1 _test_id ) list( GET ${_test_name} 1 _test_id )
list( GET ${_test_name} 2 _test_search_filter ) list( GET ${_test_name} 2 _test_search_filter )
file( GLOB_RECURSE _test_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_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} ) foreach( _test_file ${_test_files} )
add_test( add_test(
${_test_executable}__${_test_id}__${_test_file}__ ${_test_executable}__${_test_id}__${_test_file}__

Loading…
Cancel
Save