From 3d4ea5490f6004cbf1ad7a03280a6a5ff5c69351 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 30 Nov 2022 17:35:44 +0100 Subject: [PATCH] Move lcov commands to a separate script Signed-off-by: Gilles Peskine --- Makefile | 9 +-------- scripts/lcov.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100755 scripts/lcov.sh diff --git a/Makefile b/Makefile index 5b2ad16cd..85fa093ae 100644 --- a/Makefile +++ b/Makefile @@ -145,14 +145,7 @@ covtest: tests/ssl-opt.sh lcov: - 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 + scripts/lcov.sh apidoc: mkdir -p apidoc diff --git a/scripts/lcov.sh b/scripts/lcov.sh new file mode 100755 index 000000000..ab86421f9 --- /dev/null +++ b/scripts/lcov.sh @@ -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