Remove obsolete target covtest

This target dates back from before basic-build-test.sh existed. Refer to
that script instead.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2022-12-08 22:18:31 +01:00
parent 2f66115e0e
commit 0ab6c8acb7
2 changed files with 15 additions and 17 deletions

View File

@ -304,13 +304,13 @@ if(ENABLE_TESTING)
# additional convenience targets for Unix only # additional convenience targets for Unix only
if(UNIX) if(UNIX)
ADD_CUSTOM_TARGET(covtest # For coverage testing:
COMMAND make test # 1. Build with:
COMMAND programs/test/selftest # cmake -D CMAKE_BUILD_TYPE=Coverage /path/to/source && make
COMMAND tests/compat.sh # 2. Run the relevant tests for the part of the code you're interested in.
COMMAND tests/ssl-opt.sh # For the reference coverage measurement, see
) # tests/scripts/basic-build-test.sh
# 3. Run scripts/lcov.sh to generate an HTML report.
ADD_CUSTOM_TARGET(lcov ADD_CUSTOM_TARGET(lcov
COMMAND scripts/lcov.sh COMMAND scripts/lcov.sh
) )

View File

@ -4,7 +4,7 @@ PERL ?= perl
.SILENT: .SILENT:
.PHONY: all no_test programs lib tests install uninstall clean test check covtest lcov apidoc apidoc_clean .PHONY: all no_test programs lib tests install uninstall clean test check lcov apidoc apidoc_clean
all: programs tests all: programs tests
$(MAKE) post_build $(MAKE) post_build
@ -136,15 +136,13 @@ check: lib tests
test: check test: check
ifndef WINDOWS ifndef WINDOWS
# Note: for coverage testing, build with: # For coverage testing:
# make CFLAGS='--coverage -g3 -O0' LDFLAGS='--coverage' # 1. Build with:
# For the reference coverage measurement, see tests/scripts/basic-build-test.sh # make CFLAGS='--coverage -g3 -O0' LDFLAGS='--coverage'
covtest: # 2. Run the relevant tests for the part of the code you're interested in.
$(MAKE) check # For the reference coverage measurement, see
programs/test/selftest # tests/scripts/basic-build-test.sh
tests/compat.sh # 3. Run scripts/lcov.sh to generate an HTML report.
tests/ssl-opt.sh
lcov: lcov:
scripts/lcov.sh scripts/lcov.sh