<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 27, 2022 at 8:13 AM Miklos Vajna <<a href="mailto:vmiklos@collabora.com">vmiklos@collabora.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Maarten,<br>
<br>
On Wed, May 25, 2022 at 02:38:27PM +0200, Maarten Hoes <<a href="mailto:hoes.maarten@gmail.com" target="_blank">hoes.maarten@gmail.com</a>> wrote:<br>
> I've been trying to run 'make check' in combination with building<br>
> LibreOffice with gcov code coverage, and get failures for the following<br>
> tests :<br>
> <br>
> <br>
> gb_GCOV=YES verbose=t make UITest_solver<br>
> gb_GCOV=YES verbose=t make CppunitTest_sccomp_solver<br>
> gb_GCOV=YES verbose=t make CppunitTest_sccomp_swarmsolvertest<br>
> <br>
> <br>
> I set the required *FLAGS on the autogen commandline, and ran make with<br>
> 'gb_GCOV=YES'.<br>
<br>
Could you please be more specific, exactly what environment variables<br>
do you set in your autogen.input?<br>
<br>
FWIW I usually just run coverage for some area of the codebase, using:<br>
<br>
<a href="https://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/lcov/coverage.sh" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/lcov/coverage.sh</a><br>
<br>
There we do not set any coverage-related environment variables in<br>
autogen.input, just use gb_GCOV=YES when building the relevant files as<br>
you already do.<br>
<br></blockquote><div><br></div><div>Hi,<br><br><br>The complete commandline's that I run are :<br><br>CFLAGS='-fprofile-arcs -ftest-coverage' CXXFLAGS='-fprofile-arcs -ftest-coverage' LDFLAGS='-fprofile-arcs -lgcov' ./autogen.sh --enable-python=internal --without-system-libs --without-system-headers<br>gb_GCOV=YES verbose=t make --output-sync=target<br>gb_GCOV=YES verbose=t make check -k --output-sync=target<br><br>I recently started a thread [1] that is about the (complete, not partial) build with gcov failing for me if I only set 'gb_GCOV=YES' on the make commandline. The build succeeds for me if I also set the required *FLAGS on the autogen commandline. The failing parts when only using 'gb_GCOV=YES' were/are 'liborcus' and 'expat'. Skia (I think) initially also broke the build, but that was because of conflicts between clang and gcc [2], which was resolved when I uninstalled clang. If I understand correctly, it was intended to force skia to always be built with clang, but - intended or not - at least on Linux it falls back on gcc (or skia gets skipped perhaps). <br><br>When looking at 'coverage.sh', it seems it only covers specific parts of the build, and not everything, so perhaps it doesn't build the parts that fail for me when not setting the additional *FLAGS ?<br><br>Anyway, if you feel that setting the additional *FLAGS in addition to 'gb_GCOV=YES' is not the right way to address the problem of the full build with gcov failing for me, then perhaps we should revisit that thread [1], before we continue looking at why 'make check' fails for me ?<br><br><br><br>- Maarten<br><br><br>[1]<br>See: "Compiling LO for lcov/gcov code coverage fails (gb_GCOV=YES)"<br><a href="https://lists.freedesktop.org/archives/libreoffice/2022-May/thread.html">https://lists.freedesktop.org/archives/libreoffice/2022-May/thread.html</a><br><br>[2]<br><a href="https://lists.freedesktop.org/archives/libreoffice/2022-May/088867.html">https://lists.freedesktop.org/archives/libreoffice/2022-May/088867.html</a></div><div><br></div></div></div>