mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 08:56:50 -04:00
Modify lcov.sh to use new project name file
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
d9312eaa4b
commit
bbb41f7afb
@ -30,10 +30,12 @@ EOF
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Repository detection
|
# Project detection
|
||||||
in_mbedtls_build_dir () {
|
PROJECT_NAME_FILE='./scripts/project_name.txt'
|
||||||
test -d library
|
|
||||||
}
|
in_mbedtls_repo () {
|
||||||
|
grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE"
|
||||||
|
}
|
||||||
|
|
||||||
# Collect stats and build a HTML report.
|
# Collect stats and build a HTML report.
|
||||||
lcov_library_report () {
|
lcov_library_report () {
|
||||||
@ -68,7 +70,7 @@ if [ $# -gt 0 ] && [ "$1" = "--help" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if in_mbedtls_build_dir; then
|
if in_mbedtls_repo; then
|
||||||
library_dir='library'
|
library_dir='library'
|
||||||
title='Mbed TLS'
|
title='Mbed TLS'
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user