Add test descriptions for lcov
This commit is contained in:
parent
61137df560
commit
720375e7ea
3 changed files with 33 additions and 7 deletions
|
@ -76,6 +76,9 @@ ADD_CUSTOM_TARGET(test-ref-config
|
|||
COMMAND tests/scripts/test-ref-configs.pl
|
||||
)
|
||||
|
||||
# add programs/test/selftest even though the selftest functions are
|
||||
# called from the testsuites since it runs them in verbose mode,
|
||||
# avoiding spurious "uncovered" printf lines
|
||||
ADD_CUSTOM_TARGET(covtest
|
||||
COMMAND make test
|
||||
COMMAND programs/test/selftest
|
||||
|
@ -84,13 +87,14 @@ ADD_CUSTOM_TARGET(covtest
|
|||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(lcov
|
||||
COMMAND lcov --capture --directory . -o polarssl.info
|
||||
COMMAND genhtml --title PolarSSL --legend --no-branch-coverage -o ../../../Coverage polarssl.info
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/library/CMakeFiles/polarssl.dir
|
||||
COMMAND rm -rf Coverage
|
||||
COMMAND lcov --capture --directory library/CMakeFiles/polarssl.dir -o polarssl.info
|
||||
COMMAND gendesc tests/Descriptions.txt -o descriptions
|
||||
COMMAND genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage polarssl.info
|
||||
COMMAND rm -f polarssl.info descriptions
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(memcheck
|
||||
COMMAND rm -rf Coverage
|
||||
COMMAND ctest -O memcheck.log -D ExperimentalMemCheck
|
||||
COMMAND tail -n1 memcheck.log | grep 'Memory checking results:' > /dev/null
|
||||
COMMAND rm -f memcheck.log
|
||||
|
|
12
Makefile
12
Makefile
|
@ -56,17 +56,23 @@ check: lib
|
|||
test-ref-configs:
|
||||
tests/scripts/test-ref-configs.pl
|
||||
|
||||
# note: for coverage testing, build with:
|
||||
# CFLAGS='--coverage' make OFLAGS='-g3 -O0'
|
||||
testcov:
|
||||
make check
|
||||
# add programs/test/selftest even though the selftest functions are
|
||||
# called from the testsuites since it runs them in verbose mode,
|
||||
# avoiding spurious "uncovered" printf lines
|
||||
programs/test/selftest
|
||||
( cd tests && ./compat.sh )
|
||||
( cd tests && ./ssl-opt.sh )
|
||||
|
||||
lcov:
|
||||
rm -rf Coverage
|
||||
( cd library && lcov --capture --directory . -o polarssl.info )
|
||||
( cd library && genhtml --title PolarSSL --legend --no-branch-coverage \
|
||||
-o ../Coverage polarssl.info )
|
||||
lcov --capture --directory library -o polarssl.info
|
||||
gendesc tests/Descriptions.txt -o descriptions
|
||||
genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage polarssl.info
|
||||
rm -f polarssl.info descriptions
|
||||
|
||||
apidoc:
|
||||
mkdir -p apidoc
|
||||
|
|
16
tests/Descriptions.txt
Normal file
16
tests/Descriptions.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
test_suites
|
||||
The various 'test_suite_XXX' programs from the 'tests' directory, executed
|
||||
using 'make check' (Unix make) or 'make test' (Cmake), include test cases
|
||||
(reference test vectors, sanity checks, etc.) for all modules except the
|
||||
SSL modules.
|
||||
|
||||
compat
|
||||
The 'tests/compat.sh' script checks interoperability with OpenSSL for every
|
||||
ciphersuite, in every version, using client authentication or not. For
|
||||
each ciphersuite/version it performs a full handshake and a small data
|
||||
exchange.
|
||||
|
||||
ssl_opt
|
||||
The 'tests/ssl-opt.sh' script checks various options and/or operations not
|
||||
covered by compat.sh: session resumption (using session cache or tickets),
|
||||
renegotiation, SNI, other extensions, etc.
|
Loading…
Reference in a new issue