mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Move lcov commands to a separate script
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
9
Makefile
9
Makefile
@ -145,14 +145,7 @@ covtest:
|
|||||||
tests/ssl-opt.sh
|
tests/ssl-opt.sh
|
||||||
|
|
||||||
lcov:
|
lcov:
|
||||||
rm -rf Coverage
|
scripts/lcov.sh
|
||||||
lcov --capture --initial --directory library -o files.info
|
|
||||||
lcov --rc lcov_branch_coverage=1 --capture --directory library -o tests.info
|
|
||||||
lcov --rc lcov_branch_coverage=1 --add-tracefile files.info --add-tracefile tests.info -o all.info
|
|
||||||
lcov --rc lcov_branch_coverage=1 --remove all.info -o final.info '*.h'
|
|
||||||
gendesc tests/Descriptions.txt -o descriptions
|
|
||||||
genhtml --title "mbed TLS" --description-file descriptions --keep-descriptions --legend --branch-coverage -o Coverage final.info
|
|
||||||
rm -f files.info tests.info all.info final.info descriptions
|
|
||||||
|
|
||||||
apidoc:
|
apidoc:
|
||||||
mkdir -p apidoc
|
mkdir -p apidoc
|
||||||
|
10
scripts/lcov.sh
Executable file
10
scripts/lcov.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rm -rf Coverage
|
||||||
|
lcov --capture --initial --directory library -o files.info
|
||||||
|
lcov --rc lcov_branch_coverage=1 --capture --directory library -o tests.info
|
||||||
|
lcov --rc lcov_branch_coverage=1 --add-tracefile files.info --add-tracefile tests.info -o all.info
|
||||||
|
lcov --rc lcov_branch_coverage=1 --remove all.info -o final.info '*.h'
|
||||||
|
gendesc tests/Descriptions.txt -o descriptions
|
||||||
|
genhtml --title "mbed TLS" --description-file descriptions --keep-descriptions --legend --branch-coverage -o Coverage final.info
|
||||||
|
rm -f files.info tests.info all.info final.info descriptions
|
Reference in New Issue
Block a user