[pkg-kolab] Bug#730600: Bug#730600: libkolabxml FTBFS (because of unit test failures)

Diane Trout diane at ghic.org
Mon Jul 14 22:38:20 UTC 2014


No I don't know why its happening. I made a few updates to Paul Klos' 1.0.1 
package that was living in git. 

I have a source package up on mentors 

http://mentors.debian.net/package/libkolabxml

(and the updated libkolab)
http://mentors.debian.net/package/libkolab

I wasn't able to duplicate the test case failure, however it worked with the 
0.8.4 version as well for me so I'm not sure why.


Diane

---- (successful build)

make[3]: Leaving directory '/tmp/buildd/libkolabxml-1.0.1/obj-x86_64-linux-
gnu'
/usr/bin/cmake -E cmake_progress_report /tmp/buildd/libkolabxml-1.0.1/obj-
x86_64-linux-gnu/CMakeFiles  38 39
[100%] Built target validationtest
make[2]: Leaving directory '/tmp/buildd/libkolabxml-1.0.1/obj-x86_64-linux-
gnu'
/usr/bin/cmake -E cmake_progress_start /tmp/buildd/libkolabxml-1.0.1/obj-
x86_64-linux-gnu/CMakeFiles 0
make[1]: Leaving directory '/tmp/buildd/libkolabxml-1.0.1/obj-x86_64-linux-
gnu'
   dh_auto_test -O--parallel
make[1]: Entering directory '/tmp/buildd/libkolabxml-1.0.1/obj-x86_64-linux-
gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process -j1
Test project /tmp/buildd/libkolabxml-1.0.1/obj-x86_64-linux-gnu
    Start 1: phptest
1/5 Test #1: phptest ..........................   Passed    0.05 sec
    Start 2: bindingstest
2/5 Test #2: bindingstest .....................   Passed    0.72 sec
    Start 3: conversiontest
3/5 Test #3: conversiontest ...................   Passed    0.27 sec
    Start 4: parsingtest
4/5 Test #4: parsingtest ......................   Passed    0.02 sec
    Start 5: validationtest
5/5 Test #5: validationtest ...................   Passed    0.05 sec

100% tests passed, 0 tests failed out of 5



On Sunday, July 13, 2014 21:51:22 Mike Gabriel wrote:
> Hi all,
> 
> I tried to build libkolabxml in a jessie chroot and the build fails
> due to failing unittests (see below).
> 
> Any idea why that is happening?
> 
> I wanted to test libkolab+libkolabxml on my roundcube instance, but
> due to these test failures I stopped playing with it (as I am
> currently on VAC ;-) ).
> 
> Mike
> 
> """
> [...]
>      Start 1: phptest
> 1/5 Test #1: phptest ..........................***Failed   12.95 sec
> PHP Warning:  Module 'kolabformat' already loaded in Unknown on line 0
> OK - Event::exceptionDates()
> OK - Event::addExceptionDate()
> Critical:
> /build/libkolabxml-SJB5qx/libkolabxml-0.8.4/src/xcalconversions.h
> 1906:   failed to write Incidence
> FAIL - Event::setStart() with date only
> -- Expected '<dtstart><date>2012-07-31</date></dtstart>', got false --
> FAIL - Event::setCreated() with date-time
> -- Expected
> '<created><date-time>2012-03-14T09:05:30Z</date-time></created>', got
> false --
> FAIL - RecurrenceRule::setFrequency()
> -- Expected '<rrule><recur><freq>MINUTELY</freq>', got false --
> FAIL - RecurrenceRule::setBySecond()
> -- Expected
> '<rrule><recur><freq>MINUTELY</freq><bysecond>1</bysecond><bysecond>3</bysec
> ond></recur></rrule>', got false --
> FAIL - Event Recurrence Exceptions
> -- Expected '<exdate><date>2009-10-12</date></exdate>', got false --
> FAIL - Alarm::setRelativeStart(Duration)
> -- Expected '<duration>-PT6H30M</duration>', got false --
> FAIL - Alarm::setStart()
> -- Expected '<trigger><date-time>2012-07-30T20:30:00Z</date-time>',
> got false --
> FAIL - Alarm relative to Start
> -- Expected '<trigger><parameters><related><text>START</text>', got false --
> FAIL - Email alarm
> -- Expected '<valarm><properties><action><text>EMAIL</text>', got false --
> FAIL - Email alarm attendee
> -- Expected
> '<attendee><cal-address>mailto:%3Calarms%40kolab.org%3E</cal-address>', got
> false --
> FAIL - kolabformat::readEvent() => kolabformat::writeEvent()
> -- Expected '<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
> <icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
> 
>    <vcalendar>
>      <properties>
>        <prodid>
>          <text>Libkolabxml-0.8.4</text>
>        </prodid>
>        <version>
>          <text>2.0</text>
>        </version>
>        <x-kolab-version>
>          <text>3.0dev1</text>
>        </x-kolab-version>
>      </properties>
>      <components>
>        <vevent>
>          <properties>
>            <uid>
>              <text>894cd943-0165-4a34-aac8-c727a6d256a6</text>
>            </uid>
>            <created>
>              <date-time>2014-07-13T21:27:14Z</date-time>
>            </created>
>            <dtstamp>
>              <date-time>2014-07-13T21:27:14Z</date-time>
>            </dtstamp>
>            <sequence>
>              <integer>0</integer>
>            </sequence>
>            <class>
>              <text>PUBLIC</text>
>            </class>
>          </properties>
>        </vevent>
>      </components>
>    </vcalendar>
> 
> </icalendar>
> schema exception
> 
> :1:1 error: invalid document structure
> 
> Critical:
> /build/libkolabxml-SJB5qx/libkolabxml-0.8.4/src/xcalconversions.h
> 1938:   Failed to parse calendar!
> Error:
> /build/libkolabxml-SJB5qx/libkolabxml-0.8.4/src/xcalconversions.h
> 1465:   Start date is missing, but is mandatory for events
> Error:
> /build/libkolabxml-SJB5qx/libkolabxml-0.8.4/src/xcalconversions.h
> 1465:   Start date is missing, but is mandatory for events
> ', got '' --
> FAIL - Event::start()
> -- Expected '2012-7-31', got '-1--1--1' --
> FAIL - RecurrenceRule::frequency()
> -- Expected 6, got 0 --
> FAIL - RecurrenceRule::bysecond()
> -- Expected 2, got 0 --
> FAIL - Read Event::exceptionDates()
> -- Expected 1, got 0 --
> FAIL - Event::alarms()
> -- Expected 2, got 0 --
> OK - Recurrence by weekday
> OK - NameComponents::setSurnames()
> OK - NameComponents::setGiven()
> OK - NameComponents::setAdditional()
> OK - NameComponents::setPrefixes()
> OK - NameComponents::suffixes()
> OK - Generate Contact UID as urn::uuid
> OK - Contact::setNameComponents()
> OK - Contact::setTitles()
> OK - Contact::setPhoto()
> OK - Contact::setBDay()
> OK - Contact::setGPSpos()
> OK - kolabformat::readContact() => kolabformat::writeContact()
> OK - Contact::photoMimetype()
> OK - kolabformat::getSerializedUID()
> OK - Contact::lastModified()
> OK - Unset BDay with empty cDateTime
> OK - vectorcontactref::size()
> OK - kolabformat::writeDistlist(): FN (UTF-8)
> OK - kolabformat::writeDistlist(): mailto uri
> OK - kolabformat::writeDistlist(): member urn::uuid
> PHP Notice:  Use of undefined constant Configuration_TypeSnippet -
> assumed 'Configuration_TypeSnippet' in
> /home/locadm/kolab/pkg-kolab/libkolabxml/src/php/test.php on line 213
> OK - Configuration.Dictionary::language
> OK - Dictionary::entries()
> OK - Generate different UIDs for configuration objects
> 
>      Start 2: bindingstest
> 2/5 Test #2: bindingstest .....................   Passed    1.04 sec
>      Start 3: conversiontest
> 3/5 Test #3: conversiontest ...................   Passed    0.28 sec
>      Start 4: parsingtest
> 4/5 Test #4: parsingtest ......................   Passed    0.03 sec
>      Start 5: validationtest
> 5/5 Test #5: validationtest ...................   Passed    0.06 sec
> 
> 80% tests passed, 1 tests failed out of 5
> 
> Total Test time (real) =  14.42 sec
> 
> The following tests FAILED:
> 	  1 - phptest (Failed)
> Errors while running CTest
> Makefile:116: recipe for target 'test' failed
> make[1]: *** [test] Error 8
> make[1]: Leaving directory
> '/home/locadm/kolab/pkg-kolab/libkolabxml/obj-x86_64-linux-gnu'
> dh_auto_test: make -j1 test ARGS+=-j1 returned exit code 2
> debian/rules:13: recipe for target 'build' failed
> make: *** [build] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> debuild: fatal error at line 1364:
> dpkg-buildpackage -rfakeroot -D -us -uc failed
> """



More information about the pkg-kolab-devel mailing list