From 61137df560b5e523fd8e36b2ba6d03bee6dd4b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 24 Feb 2014 11:57:36 +0100 Subject: [PATCH] Add a 'testcov' target --- CMakeLists.txt | 7 +++++++ Makefile | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0df87825..592417a58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,6 +76,13 @@ ADD_CUSTOM_TARGET(test-ref-config COMMAND tests/scripts/test-ref-configs.pl ) +ADD_CUSTOM_TARGET(covtest + COMMAND make test + COMMAND programs/test/selftest + COMMAND cd tests && ./compat.sh + COMMAND cd tests && ./ssl-opt.sh + ) + ADD_CUSTOM_TARGET(lcov COMMAND lcov --capture --directory . -o polarssl.info COMMAND genhtml --title PolarSSL --legend --no-branch-coverage -o ../../../Coverage polarssl.info diff --git a/Makefile b/Makefile index f48fd6628..e9eb11fc5 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,12 @@ check: lib test-ref-configs: tests/scripts/test-ref-configs.pl +testcov: + make check + programs/test/selftest + ( cd tests && ./compat.sh ) + ( cd tests && ./ssl-opt.sh ) + lcov: rm -rf Coverage ( cd library && lcov --capture --directory . -o polarssl.info )