TextView - Reduces the size of the character layout.
[platform/core/uifw/dali-toolkit.git] / automated-tests / coverage.sh
1 #!/bin/bash
2
3 ( cd ../build/tizen ; make cov_data )
4
5 # From lcov version 1.10 onwards, branch coverage is off by default and earlier versions do not support the rc option
6 LCOV_OPTS=`if [ \`printf "\\\`lcov --version | cut -d' ' -f4\\\`\n1.10\n" | sort -V | head -n 1\` = 1.10 ] ; then echo "--rc lcov_branch_coverage=1" ; fi`
7
8 for i in `find . -name "*.dir"` ; do
9     (
10         cd $i
11         echo `pwd`
12         covs=( `ls *.gcda 2>/dev/null` )
13         if [[ $? -eq 0 ]]
14         then
15             lcov $LCOV_OPTS --directory . -c -o dali.info
16             lcov $LCOV_OPTS --remove dali.info "*boost*" "/usr/include/*" "*/automated-tests/*" -o dali.info
17         fi
18     )
19 done
20
21 (
22     cd .. ;
23     genhtml $LCOV_OPTS -o build/tizen/doc/coverage `find . -name dali.info`
24 )
25
26 echo "Coverage output: ../build/tizen/doc/coverage/index.html"