You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Damjan Jovanovic <da...@apache.org> on 2015/09/08 22:53:35 UTC

Unit test conversion progress, gbuild integration, and request for help

Hi

After a massive amount of time and effort, I've managed to get about
70% of directories with CppUnit tests converted to Google Test, gotten
them to compile and link, gotten most tests to pass, and gotten some
of those that pass running during the build.

For the remaining tests, we need to get Google Test running in gbuild,
as it was only integrated into dmake (as per
https://wiki.openoffice.org/wiki/Googletest). With tremendous effort
(is anything in AOO easy?) I managed to come up with a patch for this,
but can only verify it works on my setup (FreeBSD), it still needs
testing on Linux, Solaris, Windows, MingW, OS/2 (lol) and MacOS.

Can our buildbots test patches that are not yet committed? If not, I
would appreciate it if some volunteers can apply the attached patch,
do a clean build on those platforms, and report whether it worked. If
it breaks it should do so in main/sfx2; please run make in that
directory and attach the output.

Thank you
Damjan

Re: Unit test conversion progress, gbuild integration, and request for help

Posted by Kay Schenk <ka...@gmail.com>.

On 09/08/2015 03:43 PM, Andrea Pescetti wrote:
> Damjan Jovanovic wrote:
>> After a massive amount of time and effort, I've managed to get about
>> 70% of directories with CppUnit tests converted to Google Test, gotten
>> them to compile and link, gotten most tests to pass, and gotten some
>> of those that pass running during the build.
> 
> Thank you for this!

Yes! This is truly wonderful!
> 
>> For the remaining tests, we need to get Google Test running in gbuild,
>> as it was only integrated into dmake (as per
>> https://wiki.openoffice.org/wiki/Googletest). With tremendous effort
>> (is anything in AOO easy?) I managed to come up with a patch for this,
>> but can only verify it works on my setup (FreeBSD), it still needs
>> testing on Linux, Solaris, Windows, MingW, OS/2 (lol) and MacOS.
> 
> I tested it on Linux 64 with gcc 4.8 and a clean environment. Build
> broken, see below.

...unfortunately, my Linux-32 build broke in exactly the same way and
same place as Andrea's 64-bit Linux. If you need details on our build
environments, please let us know.

> 
> For better tracking, I suggest that you open a Bugzilla issue and attach
> the patch there, so that we can progressively upload newer versions that
> obsolete the previous ones.

Good idea.

> 
>> Can our buildbots test patches that are not yet committed?
> 
> No, but we can ask and maybe get shell access to the Linux buildbots at
> least. Shall we try?
> 
>> it breaks it should do so in main/sfx2; please run make in that
>> directory and attach the output.
> 
> Indeed it did break.
> 
> Here's the relevant part of the output, just ask if you need more details.
> 
> =============
> Building module sfx2
> =============
> [ build ALL ] top level modules: sfx2 ...
> [ build ALL ] loaded modules: sfx2
> [ build LNK ] GoogleTest/sfx2_metadatable
> /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/crt1.o: In
> function `_start':
> (.text+0x20): undefined reference to `main'
> /.../main/solver/420/unxlngx6.pro/lib/libgtest.so: undefined reference
> to `pthread_key_create'
> /.../main/solver/420/unxlngx6.pro/lib/libgtest.so: undefined reference
> to `pthread_getspecific'
> /.../main/solver/420/unxlngx6.pro/lib/libgtest.so: undefined reference
> to `pthread_key_delete'
> /.../main/solver/420/unxlngx6.pro/lib/libgtest.so: undefined reference
> to `pthread_setspecific'
> collect2: error: ld returned 1 exit status
> make: ***
> [/.../main/solver/420/unxlngx6.pro/workdir/LinkTarget/GoogleTest/sfx2_metadatable]
> Error 1
> dmake:  Error code 2, while making 'all'
> 
> Regards,
>   Andrea.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
> 

-- 
--------------------------------------------
MzK

“The journey of a thousand miles begins
 with a single step.”
                          --Lao Tzu



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Unit test conversion progress, gbuild integration, and request for help

Posted by Andrea Pescetti <pe...@apache.org>.
Damjan Jovanovic wrote:
> After a massive amount of time and effort, I've managed to get about
> 70% of directories with CppUnit tests converted to Google Test, gotten
> them to compile and link, gotten most tests to pass, and gotten some
> of those that pass running during the build.

Thank you for this!

> For the remaining tests, we need to get Google Test running in gbuild,
> as it was only integrated into dmake (as per
> https://wiki.openoffice.org/wiki/Googletest). With tremendous effort
> (is anything in AOO easy?) I managed to come up with a patch for this,
> but can only verify it works on my setup (FreeBSD), it still needs
> testing on Linux, Solaris, Windows, MingW, OS/2 (lol) and MacOS.

I tested it on Linux 64 with gcc 4.8 and a clean environment. Build 
broken, see below.

For better tracking, I suggest that you open a Bugzilla issue and attach 
the patch there, so that we can progressively upload newer versions that 
obsolete the previous ones.

> Can our buildbots test patches that are not yet committed?

No, but we can ask and maybe get shell access to the Linux buildbots at 
least. Shall we try?

> it breaks it should do so in main/sfx2; please run make in that
> directory and attach the output.

Indeed it did break.

Here's the relevant part of the output, just ask if you need more details.

=============
Building module sfx2
=============
[ build ALL ] top level modules: sfx2 ...
[ build ALL ] loaded modules: sfx2
[ build LNK ] GoogleTest/sfx2_metadatable
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/crt1.o: In 
function `_start':
(.text+0x20): undefined reference to `main'
/.../main/solver/420/unxlngx6.pro/lib/libgtest.so: undefined reference 
to `pthread_key_create'
/.../main/solver/420/unxlngx6.pro/lib/libgtest.so: undefined reference 
to `pthread_getspecific'
/.../main/solver/420/unxlngx6.pro/lib/libgtest.so: undefined reference 
to `pthread_key_delete'
/.../main/solver/420/unxlngx6.pro/lib/libgtest.so: undefined reference 
to `pthread_setspecific'
collect2: error: ld returned 1 exit status
make: *** 
[/.../main/solver/420/unxlngx6.pro/workdir/LinkTarget/GoogleTest/sfx2_metadatable] 
Error 1
dmake:  Error code 2, while making 'all'

Regards,
   Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org