Fixed libkcal tests (new version) - bug 2719 #18

Συγχωνευμένα
SlavekB συγχώνευσε 1 υποβολές από bug/2719/libkcaltests-new σε master 5 έτη πριν
MicheleC σχολίασε 5 έτη πριν
Ιδιοκτήτης

Replaces #17.

Under Debian/Ubuntu, to be built with TDE/tde-packaging#15

Replaces #17. Under Debian/Ubuntu, to be built with TDE/tde-packaging#15
MicheleC το πρόσθεσε στο R14.0.7 release ορόσημο 5 έτη πριν
MicheleC άλλαξε το τίτλο από Fixed building of libkcal tests (new version) - bug 2719 σε WIP: Fixed building of libkcal tests (new version) - bug 2719 5 έτη πριν
MicheleC σχολίασε 5 έτη πριν
Συντάκτης
Ιδιοκτήτης

Marked as WIP until tests are fixed, otherwise building tdepim would fail.

Marked as WIP until tests are fixed, otherwise building tdepim would fail.
MicheleC άλλαξε το τίτλο από WIP: Fixed building of libkcal tests (new version) - bug 2719 σε Fixed libkcal tests (new version) - bug 2719 5 έτη πριν
MicheleC σχολίασε 5 έτη πριν
Συντάκτης
Ιδιοκτήτης

PR is now completed and works fine in Debian Buster.

100% tests passed, 0 tests failed out of 455

@SlavekB: can you run a test on all distros and see if all tests pass?

PR is now completed and works fine in Debian Buster. 100% tests passed, 0 tests failed out of 455 @SlavekB: can you run a test on all distros and see if all tests pass?
SlavekB σχολίασε 5 έτη πριν
Ιδιοκτήτης

Score of builds is not good:

     18 FAILED
      8 SUCCESS

I think it's related to commit 8996740084. maybe redundant is_utc is still needed to use for libical < 3 because it is used internally in libical? Or something wrong with function icaltime_from_timet_with_zone?

Successful builds are for distributions that contain libical >= 3 (Buster, Bionic, Cosmic, Disco), failing are all that contain libical < 3. 19 tests fail on older distributions (Squeeze, Wheezy, Lucid, Precise), 13 on newer distributions (same starting from test 443):

The following tests FAILED:
         61 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase55.ics__ (Failed)
         62 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase54.ics__ (Failed)
         97 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase15.ics__ (Failed)
        204 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase55.ics__ (Failed)
        205 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase54.ics__ (Failed)
        240 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase15.ics__ (Failed)
        443 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase13.vcs__ (Failed)
        444 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase12.vcs__ (Failed)
        445 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase11.vcs__ (Failed)
        446 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase10.vcs__ (Failed)
        447 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase09.vcs__ (Failed)
        448 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase08.vcs__ (Failed)
        449 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase07.vcs__ (Failed)
        450 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase06.vcs__ (Failed)
        451 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase05.vcs__ (Failed)
        452 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase04.vcs__ (Failed)
        453 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase03.vcs__ (Failed)
        454 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase02.vcs__ (Failed)
        455 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase01.vcs__ (Failed)
Score of builds is not good: ``` 18 FAILED 8 SUCCESS ``` I think it's related to commit 8996740084. maybe redundant `is_utc` is still needed to use for libical < 3 because it is used internally in libical? Or something wrong with function icaltime_from_timet_with_zone? Successful builds are for distributions that contain libical >= 3 (Buster, Bionic, Cosmic, Disco), failing are all that contain libical < 3. 19 tests fail on older distributions (Squeeze, Wheezy, Lucid, Precise), 13 on newer distributions (same starting from test 443): ``` The following tests FAILED: 61 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase55.ics__ (Failed) 62 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase54.ics__ (Failed) 97 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase15.ics__ (Failed) 204 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase55.ics__ (Failed) 205 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase54.ics__ (Failed) 240 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase15.ics__ (Failed) 443 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase13.vcs__ (Failed) 444 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase12.vcs__ (Failed) 445 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase11.vcs__ (Failed) 446 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase10.vcs__ (Failed) 447 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase09.vcs__ (Failed) 448 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase08.vcs__ (Failed) 449 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase07.vcs__ (Failed) 450 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase06.vcs__ (Failed) 451 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase05.vcs__ (Failed) 452 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase04.vcs__ (Failed) 453 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase03.vcs__ (Failed) 454 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase02.vcs__ (Failed) 455 - readandwrite__ical__data/vCalendar/KOrganizer_vCalTestCase01.vcs__ (Failed) ```
MicheleC σχολίασε 5 έτη πριν
Συντάκτης
Ιδιοκτήτης

@SlavekB: thanks for testing. Will work on a fix. Most likely the update to libical 3 is resposnsible, as you pointed out. Good thing that the tests have spotted this 😄

@SlavekB: thanks for testing. Will work on a fix. Most likely the update to libical 3 is resposnsible, as you pointed out. Good thing that the tests have spotted this :smile:
MicheleC άλλαξε το τίτλο από Fixed libkcal tests (new version) - bug 2719 σε WIP - Fixed libkcal tests (new version) - bug 2719 5 έτη πριν
MicheleC άλλαξε το τίτλο από WIP - Fixed libkcal tests (new version) - bug 2719 σε WIP: Fixed libkcal tests (new version) - bug 2719 5 έτη πριν
SlavekB σχολίασε 5 έτη πριν
Ιδιοκτήτης

Results on Debian 6.0 (Squeeze) and 7.0 (Wheezy):

The following tests FAILED:
         61 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase55.ics__ (Failed)
         62 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase54.ics__ (Failed)
         97 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase15.ics__ (Failed)
        204 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase55.ics__ (Failed)
        205 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase54.ics__ (Failed)
        240 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase15.ics__ (Failed)

Debian 8.0 (Jessie) and newer are fine – the 4XX tests are now resolved. I expect similar results for Ubuntu.

Results on Debian 6.0 (Squeeze) and 7.0 (Wheezy): ``` The following tests FAILED: 61 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase55.ics__ (Failed) 62 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase54.ics__ (Failed) 97 - testrecurrence__next__data/RecurrenceRule/LibICal/LibICal_TestCase15.ics__ (Failed) 204 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase55.ics__ (Failed) 205 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase54.ics__ (Failed) 240 - testrecurprevious__prev__data/RecurrenceRule/LibICal/LibICal_TestCase15.ics__ (Failed) ``` Debian 8.0 (Jessie) and newer are fine – the 4XX tests are now resolved. I expect similar results for Ubuntu.
MicheleC σχολίασε 5 έτη πριν
Συντάκτης
Ιδιοκτήτης

tests seems to be caused by bug in old versions of libical (0.4x) where the DST zone of Los Angeles is inaccurate.

The failing tests refer to a time on April 2, 2002. In 2002 DST was applied on April 7, meaning till that date the time difference between UTC and Los Angeles was 8 hours and not 7. In Squeeze it seems libical thinks it was 7 hours instead of 8.

tests seems to be caused by bug in old versions of libical (0.4x) where the DST zone of Los Angeles is inaccurate. The failing tests refer to a time on April 2, 2002. In 2002 DST was applied on April 7, meaning till that date the time difference between UTC and Los Angeles was 8 hours and not 7. In Squeeze it seems libical thinks it was 7 hours instead of 8.
MicheleC άλλαξε το τίτλο από WIP: Fixed libkcal tests (new version) - bug 2719 σε Fixed libkcal tests (new version) - bug 2719 5 έτη πριν
MicheleC σχολίασε 5 έτη πριν
Συντάκτης
Ιδιοκτήτης

New commit tested on Squeeze. Looks good.

New commit tested on Squeeze. Looks good.
SlavekB σχολίασε 5 έτη πριν
Ιδιοκτήτης

Building on all currently supported Debian / Ubuntu distributions – only amd64 and i386 for test purposes:

     26 SUCCESS
Building on all currently supported Debian / Ubuntu distributions – only amd64 and i386 for test purposes: ``` 26 SUCCESS ```
SlavekB αξιολόγησε 5 έτη πριν
SlavekB άφησε ένα σχόλιο
Ιδιοκτήτης

Tests work fine – good work! However, there is one suggestion for adjustment.

Tests work fine – good work! However, there is one suggestion for adjustment.
libkcal/tests/CMakeLists.txt Παρωχημένο
endforeach( )
set_target_properties( testfields
PROPERTIES COMPILE_FLAGS -DINPUT='\"${CMAKE_CURRENT_SOURCE_DIR}/data/test_pilot.ics\"'
SlavekB σχολίασε 5 έτη πριν
Ιδιοκτήτης

To avoid potential problems with escaping quotes, it is better to use:

set_property( TARGET testfields APPEND PROPERTY
  COMPILE_DEFINITIONS INPUT="${CMAKE_CURRENT_SOURCE_DIR}/data/test_pilot.ics"
To avoid potential problems with escaping quotes, it is better to use: ``` set_property( TARGET testfields APPEND PROPERTY COMPILE_DEFINITIONS INPUT="${CMAKE_CURRENT_SOURCE_DIR}/data/test_pilot.ics" ```
MicheleC σχολίασε 5 έτη πριν
Συντάκτης
Ιδιοκτήτης

ok thanks. will incorporate and recommit

ok thanks. will incorporate and recommit
SlavekB έκλεισε αυτό το pull request 5 έτη πριν
SlavekB διέγραψε το κλάδο bug/2719/libkcaltests-new 5 έτη πριν
Το pull request έχει συγχωνευθεί ως 309e91d9d6.
Συνδεθείτε για να συμμετάσχετε σε αυτή τη συνομιλία.
Δεν υπάρχουν εξεταστές
Χωρίς Ορόσημο
Χωρίς Αποδέκτη
2 Συμμετέχοντες
Ειδοποιήσεις
Ημερομηνία Παράδοσης

Δεν ορίστηκε ημερομηνία παράδοσης.

Εξαρτήσεις

Δεν έχουν οριστεί εξαρτήσεις.

Αναφορά: TDE/tdepim#18
Φόρτωση…
Δεν υπάρχει ακόμα περιεχόμενο.