diff options
author | Michele Calgaro <[email protected]> | 2019-03-27 23:27:22 +0900 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-04-01 18:36:29 +0200 |
commit | 9d6e89d4db97c351466d41b958605091075563b5 (patch) | |
tree | 801dd8129e47d87632adcbe4510b5467dc56d9cf /libkcal/tests | |
parent | 77ffd0e710a5ea62b3c36e37cf82fd66df5b6512 (diff) | |
download | tdepim-9d6e89d4db97c351466d41b958605091075563b5.tar.gz tdepim-9d6e89d4db97c351466d41b958605091075563b5.zip |
Fixed bug in libkcal related to timezones in DT field.
Fixed execution of libkcal tests.
This resolves bug 2719.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 48af72cbe8a4f0cc22de3e2ceda5db47ca922759)
Diffstat (limited to 'libkcal/tests')
11 files changed, 57 insertions, 55 deletions
diff --git a/libkcal/tests/CMakeLists.txt b/libkcal/tests/CMakeLists.txt index 386982c4d..3f3603d45 100644 --- a/libkcal/tests/CMakeLists.txt +++ b/libkcal/tests/CMakeLists.txt @@ -59,13 +59,15 @@ add_custom_command( WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) +# Compat tests are broken and have been in a disabled state since before TDE exited set ( _test1 testrecurrence "next" ${CMAKE_CURRENT_SOURCE_DIR}/data/RecurrenceRule/*.ics ) set ( _test2 testrecurprevious "prev" ${CMAKE_CURRENT_SOURCE_DIR}/data/RecurrenceRule/*.ics ) set ( _test3 testrecurson "recurson" ${CMAKE_CURRENT_SOURCE_DIR}/data/RecurrenceRule/*.ics ) -set ( _test4 readandwrite "ical" ${CMAKE_CURRENT_SOURCE_DIR}/data/Compat/*.ics ) +#set ( _test4 readandwrite "ical" ${CMAKE_CURRENT_SOURCE_DIR}/data/Compat/*.ics ) set ( _test5 testvcalexport "vcal" ${CMAKE_CURRENT_SOURCE_DIR}/data/vCalendar/*.ics ) set ( _test6 readandwrite "ical" ${CMAKE_CURRENT_SOURCE_DIR}/data/vCalendar/*.vcs ) -set ( _all_tests _test1 _test2 _test3 _test4 _test5 _test6 ) +#set ( _all_tests _test1 _test2 _test3 _test4 _test5 _test6 ) +set ( _all_tests _test1 _test2 _test3 _test5 _test6 ) foreach( _test_name ${_all_tests} ) list( GET ${_test_name} 0 _test_executable ) @@ -74,7 +76,7 @@ foreach( _test_name ${_all_tests} ) file( GLOB_RECURSE _test_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_test_search_filter} ) foreach( _test_file ${_test_files} ) add_test( - ${_test_executable}__${_test_file}__ + ${_test_executable}__${_test_id}__${_test_file}__ ${CMAKE_CURRENT_SOURCE_DIR}/runtestcase.pl ${_test_executable} ${_test_id} ${CMAKE_CURRENT_BINARY_DIR}/${_test_file} ) endforeach( ) diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase06.ics.next.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase06.ics.next.ref index 0abed481e..c34698184 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase06.ics.next.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase06.ics.next.ref @@ -1,13 +1,13 @@ -2001-12-16T19:25:00 -2001-12-18T19:25:00 -2001-12-23T19:25:00 -2001-12-25T19:25:00 -2001-12-30T19:25:00 -2002-01-01T19:25:00 -2002-01-06T19:25:00 -2002-01-08T19:25:00 -2002-01-13T19:25:00 -2002-01-15T19:25:00 +2001-12-16T11:25:00 +2001-12-18T11:25:00 +2001-12-23T11:25:00 +2001-12-25T11:25:00 +2001-12-30T11:25:00 +2002-01-01T11:25:00 +2002-01-06T11:25:00 +2002-01-08T11:25:00 +2002-01-13T11:25:00 +2002-01-15T11:25:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase06.ics.prev.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase06.ics.prev.ref index 5caf88d3a..9ec6cf161 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase06.ics.prev.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase06.ics.prev.ref @@ -1,13 +1,13 @@ -2002-01-15T19:25:00 -2002-01-13T19:25:00 -2002-01-08T19:25:00 -2002-01-06T19:25:00 -2002-01-01T19:25:00 -2001-12-30T19:25:00 -2001-12-25T19:25:00 -2001-12-23T19:25:00 -2001-12-18T19:25:00 -2001-12-16T19:25:00 +2002-01-15T11:25:00 +2002-01-13T11:25:00 +2002-01-08T11:25:00 +2002-01-06T11:25:00 +2002-01-01T11:25:00 +2001-12-30T11:25:00 +2001-12-25T11:25:00 +2001-12-23T11:25:00 +2001-12-18T11:25:00 +2001-12-16T11:25:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase07.ics.next.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase07.ics.next.ref index 9a6556470..135348004 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase07.ics.next.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase07.ics.next.ref @@ -1,6 +1,6 @@ -2001-12-04T15:35:00 -2002-01-01T15:35:00 -2002-02-05T15:35:00 +2001-12-04T07:35:00 +2002-01-01T07:35:00 +2002-02-05T07:35:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase07.ics.prev.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase07.ics.prev.ref index ba0f10788..4a782a5e8 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase07.ics.prev.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase07.ics.prev.ref @@ -1,6 +1,6 @@ -2002-02-05T15:35:00 -2002-01-01T15:35:00 -2001-12-04T15:35:00 +2002-02-05T07:35:00 +2002-01-01T07:35:00 +2001-12-04T07:35:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase15.ics.next.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase15.ics.next.ref index 6ce39a7df..c447acf50 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase15.ics.next.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase15.ics.next.ref @@ -1,9 +1,9 @@ -2002-04-02T11:45:00 -2002-04-03T11:45:00 -2002-04-09T11:45:00 -2002-04-10T11:45:00 -2002-04-16T11:45:00 -2002-04-17T11:45:00 +2002-04-02T03:45:00 +2002-04-03T03:45:00 +2002-04-09T03:45:00 +2002-04-10T03:45:00 +2002-04-16T03:45:00 +2002-04-17T03:45:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase15.ics.prev.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase15.ics.prev.ref index 1f5f03e85..3e7925f38 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase15.ics.prev.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase15.ics.prev.ref @@ -1,9 +1,9 @@ -2002-04-17T11:45:00 -2002-04-16T11:45:00 -2002-04-10T11:45:00 -2002-04-09T11:45:00 -2002-04-03T11:45:00 -2002-04-02T11:45:00 +2002-04-17T03:45:00 +2002-04-16T03:45:00 +2002-04-10T03:45:00 +2002-04-09T03:45:00 +2002-04-03T03:45:00 +2002-04-02T03:45:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase54.ics.next.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase54.ics.next.ref index 6ce39a7df..c447acf50 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase54.ics.next.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase54.ics.next.ref @@ -1,9 +1,9 @@ -2002-04-02T11:45:00 -2002-04-03T11:45:00 -2002-04-09T11:45:00 -2002-04-10T11:45:00 -2002-04-16T11:45:00 -2002-04-17T11:45:00 +2002-04-02T03:45:00 +2002-04-03T03:45:00 +2002-04-09T03:45:00 +2002-04-10T03:45:00 +2002-04-16T03:45:00 +2002-04-17T03:45:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase54.ics.prev.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase54.ics.prev.ref index 1f5f03e85..3e7925f38 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase54.ics.prev.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase54.ics.prev.ref @@ -1,9 +1,9 @@ -2002-04-17T11:45:00 -2002-04-16T11:45:00 -2002-04-10T11:45:00 -2002-04-09T11:45:00 -2002-04-03T11:45:00 -2002-04-02T11:45:00 +2002-04-17T03:45:00 +2002-04-16T03:45:00 +2002-04-10T03:45:00 +2002-04-09T03:45:00 +2002-04-03T03:45:00 +2002-04-02T03:45:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase55.ics.next.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase55.ics.next.ref index 5be77173a..156bc69b6 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase55.ics.next.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase55.ics.next.ref @@ -1,4 +1,4 @@ -2002-04-02T11:45:00 +2002-04-02T03:45:00 diff --git a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase55.ics.prev.ref b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase55.ics.prev.ref index 5be77173a..156bc69b6 100644 --- a/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase55.ics.prev.ref +++ b/libkcal/tests/data/RecurrenceRule/LibICal/LibICal_TestCase55.ics.prev.ref @@ -1,4 +1,4 @@ -2002-04-02T11:45:00 +2002-04-02T03:45:00 |