Added locv to makefile recipe, added both cryptest.exe runs (thanks Jack Lloyd)

pull/96/head
Jeffrey Walton 2015-12-29 04:50:15 -05:00
parent 30c9b8376d
commit da95a18c19
1 changed files with 4 additions and 3 deletions

View File

@ -238,8 +238,8 @@ endif # Aligned access
ifneq ($(filter coverage,$(MAKECMDGOALS)),)
ifeq ($(findstring -coverage,$(CXXFLAGS)),)
CXXFLAGS += -coverage
endif # -ftest-coverage
endif # Aligned access
endif # -coverage
endif # GCC code coverage
# Debug testing on GNU systems
ifneq ($(filter -DDEBUG -DDEBUG=1,$(CXXFLAGS)),)
@ -326,8 +326,9 @@ asan ubsan align aligned: libcryptopp.a cryptest.exe
coverage: libcryptopp.a cryptest.exe
lcov --base-directory . --directory . --zerocounters -q
./cryptest.exe v
./cryptest.exe tv all
lcov --base-directory . --directory . -c -o cryptest.info
lcov --remove cryptest.info "/usr/*" -o cryptest.info
lcov --remove cryptest.info "*test.*" "bench*.cpp" "validat*.*" "/usr/*" -o cryptest.info
rm -rf ./TestCoverage/
genhtml -o ./TestCoverage/ -t "cryptest.exe test coverage" --num-spaces 4 cryptest.info