Hi,

On Mon, Jan 31, 2022 at 02:25:39PM +0500, Илья Шипицин wrote:
> can you share details how did you invoked "gcov" ?
> I tried to make it work recently chipitsine/haproxy | Coveralls - Test
> Coverage History & Statistics
> <https://coveralls.io/github/chipitsine/haproxy> , but it needs more
> attention.

1. Set -fprofile-arcs -ftest-coverage in the CFLAGS and -lgcov in the LDFLAGS
2. Build and run the regression test suite:
   make TARGET=linux-glibc USE_OPENSSL=1 USE_PCRE=1 USE_SYSTEMD=1 USE_LUA=1
   make reg-tests
3. Generate lcov and gcov data:
   cov --capture --directory . --output-file cov.info
   genhtml cov.info --output-directory out_html --demangle-cpp --legend \
                                            --title "Haproxy Testsuite"

This should output the coverage in HTML format.

Best,
Hugo

-- 
                Hugo Lefeuvre (hle)    |    www.owl.eu.com
RSA4096_ 360B 03B3 BF27 4F4D 7A3F D5E8 14AA 1EB8 A247 3DFD
ed25519_ 37B2 6D38 0B25 B8A2 6B9F 3A65 A36F 5357 5F2D DC4C

Attachment: signature.asc
Description: PGP signature

Reply via email to