File indexing completed on 2024-12-08 07:18:26
0001 #!/bin/bash 0002 0003 # Inspiration from https://itk.org/gitweb?p=ITK.git;a=blob;f=Utilities/Maintenance/computeCodeCoverageLocally.sh;h=539e6c62c2dc2ba9f7c16b915120915fe192f67a;hb=HEAD 0004 0005 CMAKE_BINARY_DIR=`grep ^CMAKE_BINARY_DIR Makefile | sed 's/.*\= //'` 0006 CMAKE_SOURCE_DIR=`grep ^CMAKE_SOURCE_DIR Makefile | sed 's/.*\= //'` 0007 0008 echo CMAKE_BINARY_DIR = $CMAKE_BINARY_DIR 0009 echo CMAKE_SOURCE_DIR = $CMAKE_SOURCE_DIR 0010 0011 cd $CMAKE_BINARY_DIR/src 0012 0013 rm -f app.info app.info2 0014 0015 lcov --directory . --zerocounters 0016 0017 ctest || exit 1 0018 0019 lcov --directory . -b $CMAKE_SOURCE_DIR/src/parser --capture --output-file app.info || exit 1 0020 lcov --remove app.info '/usr/*' --output-file app.info2 || exit 1 0021 0022 genhtml --legend -f --demangle-cpp -o gcov_report app.info2