Mercurial > trustbridge
comparison make-coverage.sh.in @ 557:5cd525fc91de
Add lcov target to generate coverage report
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 22 May 2014 10:19:27 +0000 |
parents | |
children | 0f3af6916395 |
comparison
equal
deleted
inserted
replaced
556:5dc4aa684c63 | 557:5cd525fc91de |
---|---|
1 #!/bin/bash | |
2 | |
3 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik | |
4 # Software engineering by Intevation GmbH | |
5 # | |
6 # This file is Free Software under the GNU GPL (v>=2) | |
7 # and comes with ABSOLUTELY NO WARRANTY! | |
8 # See LICENSE.txt for details. | |
9 | |
10 set -x | |
11 | |
12 rm -r @CMAKE_CURRENT_BINARY_DIR@/coverage | |
13 mkdir -p @CMAKE_CURRENT_BINARY_DIR@/coverage | |
14 cd @CMAKE_CURRENT_BINARY_DIR@/coverage | |
15 lcov -c -i -d @CMAKE_BINARY_DIR@ -o base.info | |
16 cd @CMAKE_BINARY_DIR@ | |
17 make test | |
18 lcov -c -d @CMAKE_BINARY_DIR@ -o test.info | |
19 lcov -a base.info -a test.info -o TrustBridge-@PROJECT_VERSION@.info | |
20 genhtml TrustBridge-@PROJECT_VERSION@.info |