fwknop/test/gen-coverage-report.sh
2016-05-02 13:17:03 -05:00

17 lines
694 B
Bash
Executable File

#!/bin/sh -x
. ./lcov.env
cd ..
lcov $LCOV_RC_BC --no-checksum --capture --directory . --output-file $LCOV_INFO
lcov $LCOV_RC_BC --no-checksum -a $LCOV_BASE -a $LCOV_INFO --output-file $LCOV_INFO_TMP
lcov $LCOV_RC_BC --no-checksum -r $LCOV_INFO_TMP /usr/include/\* --output-file $LCOV_INFO_TMP2
lcov $LCOV_RC_BC --no-checksum -r $LCOV_INFO_TMP2 \*cunit\* --output-file $LCOV_INFO_TMP3
lcov $LCOV_RC_BC --no-checksum -r $LCOV_INFO_TMP3 \*utests\* --output-file $LCOV_INFO_TMP4
lcov $LCOV_RC_BC --no-checksum -r $LCOV_INFO_TMP4 test/fko-wrapper/\* --output-file $LCOV_INFO_FINAL
genhtml $GENHTML_USE_BC --output-directory $LCOV_RESULTS_DIR --branch-coverage $LCOV_INFO_FINAL
cd $TOP_DIR
exit