Skip to content

Commit

Permalink
scripts/uncovered: fixed whitespace
Browse files Browse the repository at this point in the history
darcs-hash:20081127232840-db55f-433b8d9668275323b03b8f18b2ac11b8c8be11bb.gz
  • Loading branch information
Pekka Pessi committed Nov 27, 2008
1 parent 59c21d7 commit 944c5e2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/uncovered
Expand Up @@ -25,7 +25,7 @@ GENHTML_OPTIONS= o= ldir=

while test $# -gt 0;
do
case $1 in
case $1 in
--lcov-dir | -l ) test -z "$2" && usage 1; shift; ldir=$1; shift; ;;
--lcov-dir=* ) ldir=${1#--ldir=}; shift ;;
--srcdir | -s )
Expand All @@ -41,21 +41,21 @@ done

cwd=`pwd`

tdir=${TMPDIR:-/tmp}/$USER.uncovered.$$
tdir=${TMPDIR:-/tmp}/$USER.uncovered.$$
info=${tdir}/lcov.info geninfo=${tdir}/genhtml.info

test -d ${tdir} && { echo ${tdir}: already exists ; exit 2 ; }

mkdir -p ${tdir} &&
{
# Find all lcov.info0 under -t DIR
# Find all lcov.info0 under -t DIR
test -d ${ldir} &&
find ${ldir} -name lcov.info |
while read s
do
find $cwd -type f -not -newer $s | xargs lcov -q -e $s
find $cwd -type f -not -newer $s | xargs lcov -q -e $s
done

lcov -q -c -d . --compat-libtool
} > ${info}

Expand All @@ -65,8 +65,8 @@ test -e ${info} || exit 1
# remove system includes with with inlined functions
lcov -q -l ${info} | grep -v "`cd ${srcdir:-.} && pwd`"
# remove test programs
lcov -q -l ${info} | grep "/test\|/torture\|_test[.]c$"
} |
lcov -q -l ${info} | grep "/test\|/torture\|_test[.]c$"
} |
cut -d: -f1 |
xargs lcov -q -r ${info} > ${geninfo} &&
cd ${tdir} &&
Expand Down Expand Up @@ -107,7 +107,7 @@ while (<>) {
for ($f = $ARGV) {
s:^[.]'$cwd/'::o;
s:[.]gcov[.]html$::;
}
}
s/^ +(\d+)[^:]+:/$1:/;
$uncovered = $f . ":" . $_;
}
Expand Down

0 comments on commit 944c5e2

Please sign in to comment.