]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CI: Add support for coverage processing.
authorCorey Farrell <git@cfware.com>
Fri, 20 Jul 2018 03:28:14 +0000 (23:28 -0400)
committerCorey Farrell <git@cfware.com>
Wed, 8 Aug 2018 16:06:54 +0000 (11:06 -0500)
commitf3a8bfff3615ff442ee7e7528f56d1986ed2e6ec
treee64f461a554307839558f7865b453eb40fceeeb6
parentc22efd9990c1d21a124f0752e5a8f79345d8d43e
CI: Add support for coverage processing.

Enable coverage with `./tests/CI/buildAsterisk.sh --coverage`.  This
will cause Asterisk to be compiled with coverage support.  It also
initializes 'before' coverage data for all sources.  Accept
--tested-only to disable modules which are not run by any test.
Enabling coverage also sets tested-only true by default.  To build
everything with coverage enabled use `--coverage --tested-only=0`.

./tests/CI/processCoverage.sh is used to process the coverage and
generate HTML reports.

Fix utils/check_expr2 which failed to compiled with coverage enabled.

Add status output 5 times per stage of astobj2_test_perf to ensure
remote CLI does not timeout when compiled with coverage.  Remote CLI
disconnects if no output is received for 60 seconds.  When coverage is
enabled it takes about 70 seconds for my laptop to run the stages of
this test, so with the change a message is printed every 14 seconds.

Change-Id: I890f7d5665087426ad7d3e363187691b9afc2222
tests/CI/buildAsterisk.sh
tests/CI/processCoverage.sh [new file with mode: 0755]
tests/test_astobj2.c
utils/Makefile