1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

Modify lcov.sh to use new project name file

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney
2023-12-05 11:42:51 +00:00
parent d9312eaa4b
commit bbb41f7afb

View File

@@ -30,10 +30,12 @@ EOF
set -eu
# Repository detection
in_mbedtls_build_dir () {
test -d library
}
# Project detection
PROJECT_NAME_FILE='./scripts/project_name.txt'
in_mbedtls_repo () {
grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE"
}
# Collect stats and build a HTML report.
lcov_library_report () {
@@ -68,7 +70,7 @@ if [ $# -gt 0 ] && [ "$1" = "--help" ]; then
exit
fi
if in_mbedtls_build_dir; then
if in_mbedtls_repo; then
library_dir='library'
title='Mbed TLS'
else