Re: Unittest fails building on OS X 10.9

2014-10-24 Thread Alexander Thurgood
Le 09/10/2014 21:38, Joost Eekhoorn a écrit :

Hi Joost,

 ./autogen.sh
 --with-ant-home=/usr/local/bin/apache-ant
 --wiithout-junit

I have something similar to the above, except that my ant installation
is outside of my system tree


 --enable-python=internal

Not quite sure why you needed this python directive, I don't and my
build works


 --disable-cve-tests

I don't need to disable any of the unit tests specifically, unless
something has changed in that regard since Wednesday.


 
 I could not found instdir/program/soffice to start the program, but used:
 instdir/LibreOfficeDev.app/Contents/MacOS/soffice

Yes, the binary is in the app bundle.


Alex

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Unittest fails building on OS X 10.9

2014-10-10 Thread Joost Eekhoorn
Hi,

Yes, your section looks more up to date, than the section Minimal Setup.
Great job you have done.

Regards,
Joost



2014-10-10 3:28 GMT+02:00 Robert Antoni Buj i Gelonch robert@gmail.com
:

 Hi,

 I've added the section Minimal Setup with MacPorts for external
 dependencies [1] which can be very helpful to build LO easily.

 [1]
 https://wiki.documentfoundation.org/Development/BuildingOnMac#Minimal_Setup_with_MacPorts_for_external_dependencies

 Regards,
 Robert

 On Thu, Oct 9, 2014 at 9:38 PM, Joost Eekhoorn joost.eekho...@gmail.com
 wrote:

 Build has succeeded.
 I saw in this that --disable-cve-test is needed on OS X Mavericks

 Still I had to do 2 little, dirty hacks:
 - Moved away 4 CVE-test file from
 ~/lo/core/writerfilter/qa/cppunittest/data/pass/
   (CVE-2010-333-1.rtf, CVE-2014-1761-1.rtf, CVE-2014-1761-2.rtf and
 CVS-pseudo-2009-0238-1.rtf)
 - Edited ~/lo/core/sw/qa/extras/rtfimport/rtfimport.cxx
   (skipping testN192129)

 Beside that, this is what I have done:

 Install Ant (OS X Mavericks does not have that anymore)

 ./autogen.sh
 --with-ant-home=/usr/local/bin/apache-ant
 --wiithout-junit
 --enable-python=internal
 --disable-cve-tests

 I could not found instdir/program/soffice to start the program, but used:
 instdir/LibreOfficeDev.app/Contents/MacOS/soffice

 It would be nice if someone would review my information and update the
 building instructions for Mac:
 https://wiki.documentfoundation.org/Development/BuildingOnMac


 ___
 LibreOffice mailing list
 LibreOffice@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/libreoffice




 --
 http://about.me/rbuj

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Unittest fails building on OS X 10.9

2014-10-10 Thread Tor Lillqvist
 I've added the section Minimal Setup with MacPorts for external
 dependencies [1] which can be very helpful to build LO easily.


So that is then now our documented and thus official way to build on Mac?
If it works, I don't oppose... even if it totally contrary to what has been
the collective wisdom so far.

While you are updating that page, could you also add a mention of building
on 10.9, which after all has been the curent release for almost a year now.

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Unittest fails building on OS X 10.9

2014-10-10 Thread Alexander Thurgood
Le 10/10/2014 03:28, Robert Antoni Buj i Gelonch a écrit :

Hi Anton,


 I've added the section Minimal Setup with MacPorts for external
 dependencies [1] which can be very helpful to build LO easily.
 
 [1]
 https://wiki.documentfoundation.org/Development/BuildingOnMac#Minimal_Setup_with_MacPorts_for_external_dependencies
 


I didn't use MacPorts to install the autoconf/automake, ant, or doxygen
tools, in fact I didn't use MacPorts at all, so it is not really a
requirement to have MacPorts.


Alex



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Unittest fails building on OS X 10.9

2014-10-10 Thread Tor Lillqvist
 so it is not really a
 requirement to have MacPorts.


Indeed not. The wiki page needs to say more clearly that there are two
fundamentally different ways to set up a build environment now, and that
they shouldn't be mixed.

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Unittest fails building on OS X 10.9

2014-10-10 Thread Stephan Bergmann

On 10/10/2014 09:35 AM, Tor Lillqvist wrote:


I've added the section Minimal Setup with MacPorts for external
dependencies [1] which can be very helpful to build LO easily.


So that is then now our documented and thus official way to build on
Mac? If it works, I don't oppose... even if it totally contrary to what
has been the collective wisdom so far.


I assume the sanity of a MacPorts-in-PATH based build env depends on 
what other stuff you have installed in your MacPorts installation, so I 
would not generally suggest that route to the uninitiated.


Stephan

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Unittest fails building on OS X 10.9

2014-10-10 Thread Robert Antoni Buj i Gelonch
Hi Stephan,

I've added a subsection which explains how to install multiple copies of
MacPorts.

Regards,
Robert



On Fri, Oct 10, 2014 at 10:04 AM, Stephan Bergmann sberg...@redhat.com
wrote:

 On 10/10/2014 09:35 AM, Tor Lillqvist wrote:


 I've added the section Minimal Setup with MacPorts for external
 dependencies [1] which can be very helpful to build LO easily.


 So that is then now our documented and thus official way to build on
 Mac? If it works, I don't oppose... even if it totally contrary to what
 has been the collective wisdom so far.


 I assume the sanity of a MacPorts-in-PATH based build env depends on what
 other stuff you have installed in your MacPorts installation, so I would
 not generally suggest that route to the uninitiated.

 Stephan


 ___
 LibreOffice mailing list
 LibreOffice@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/libreoffice




-- 
http://about.me/rbuj
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Unittest fails building on OS X 10.9

2014-10-09 Thread Joost Eekhoorn
What must I do, when a unit test fails?

Why does that stops my build?


This is the error message:


[build CUT] hwpfilter_test_hwpfilter

File tested,Test Result,Execution tools::Time (ms)

~/lo/core/filter/qa/cppunit/data/tiff/pass/CVE-2005-1544-1.tiff,Pass,4

~/lo/core/filter/qa/cppunit/data/tiff/pass/CVE-2006-2656-1.tiff,Pass,5

~/lo/core/filter/qa/cppunit/data/tiff/pass/CVE-2007-2217-1.tiff,Fail,101

~/lo/core/unotest/source/cpp/filters-test.cxx:125:TiffFilterTest::testCVEs

assertion failed

- Expression: bRes == (nExpected == test::pass)

- ~/lo/core/filter/qa/cppunit/data/tiff/pass/CVE-2007-2217-1.tiff


~/lo/core/unotest/source/cpp/filters-test.cxx:125: Assertion

Test name: TiffFilterTest::testCVEs

assertion failed

- Expression: bRes == (nExpected == test::pass)

- ~/lo/core/filter/qa/cppunit/data/tiff/pass/CVE-2007-2217-1.tiff


Failures !!!

Run: 1   Failure total: 1   Failures: 1   Errors: 0

2014-10-08 23:47:16.052 cppunittester[59255:507] *** -[NSAutoreleasePool
release]: This pool has already been released, do not drain it (double
release).


Error: a unit test failed, please do one of:


export DEBUGCPPUNIT=TRUE# for exception catching

export CPPUNITTRACE=gdb --args# for interactive debugging on Linux

export CPPUNITTRACE=\[full path to devenv.exe]\ /debugexe # for
interactive debugging in Visual Studio

export VALGRIND=memcheck# for memory checking


and retry using: make CppunitTest_filter_tiff_test


make[1]: *** [~/lo/core/workdir/CppunitTest/filter_tiff_test.test] Error 1


---Joost---
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Unittest fails building on OS X 10.9

2014-10-09 Thread Joost Eekhoorn
Build has succeeded.
I saw in this that --disable-cve-test is needed on OS X Mavericks

Still I had to do 2 little, dirty hacks:
- Moved away 4 CVE-test file from
~/lo/core/writerfilter/qa/cppunittest/data/pass/
  (CVE-2010-333-1.rtf, CVE-2014-1761-1.rtf, CVE-2014-1761-2.rtf and
CVS-pseudo-2009-0238-1.rtf)
- Edited ~/lo/core/sw/qa/extras/rtfimport/rtfimport.cxx
  (skipping testN192129)

Beside that, this is what I have done:

Install Ant (OS X Mavericks does not have that anymore)

./autogen.sh
--with-ant-home=/usr/local/bin/apache-ant
--wiithout-junit
--enable-python=internal
--disable-cve-tests

I could not found instdir/program/soffice to start the program, but used:
instdir/LibreOfficeDev.app/Contents/MacOS/soffice

It would be nice if someone would review my information and update the
building instructions for Mac:
https://wiki.documentfoundation.org/Development/BuildingOnMac
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Unittest fails building on OS X 10.9

2014-10-09 Thread Robert Antoni Buj i Gelonch
Hi,

I've added the section Minimal Setup with MacPorts for external
dependencies [1] which can be very helpful to build LO easily.

[1]
https://wiki.documentfoundation.org/Development/BuildingOnMac#Minimal_Setup_with_MacPorts_for_external_dependencies

Regards,
Robert

On Thu, Oct 9, 2014 at 9:38 PM, Joost Eekhoorn joost.eekho...@gmail.com
wrote:

 Build has succeeded.
 I saw in this that --disable-cve-test is needed on OS X Mavericks

 Still I had to do 2 little, dirty hacks:
 - Moved away 4 CVE-test file from
 ~/lo/core/writerfilter/qa/cppunittest/data/pass/
   (CVE-2010-333-1.rtf, CVE-2014-1761-1.rtf, CVE-2014-1761-2.rtf and
 CVS-pseudo-2009-0238-1.rtf)
 - Edited ~/lo/core/sw/qa/extras/rtfimport/rtfimport.cxx
   (skipping testN192129)

 Beside that, this is what I have done:

 Install Ant (OS X Mavericks does not have that anymore)

 ./autogen.sh
 --with-ant-home=/usr/local/bin/apache-ant
 --wiithout-junit
 --enable-python=internal
 --disable-cve-tests

 I could not found instdir/program/soffice to start the program, but used:
 instdir/LibreOfficeDev.app/Contents/MacOS/soffice

 It would be nice if someone would review my information and update the
 building instructions for Mac:
 https://wiki.documentfoundation.org/Development/BuildingOnMac


 ___
 LibreOffice mailing list
 LibreOffice@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/libreoffice




-- 
http://about.me/rbuj
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice