|
|
gcov2text.sh - sfeed_tests - sfeed tests and RSS and Atom files |
|
|
 |
git clone git://git.codemadness.org/sfeed_tests (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
|
gcov2text.sh (361B) |
|
|
|
--- |
|
|
|
1 #!/bin/sh |
|
|
|
2 # highlight/color covered source-codes lines from gcov to text. |
|
|
|
3 # |
|
|
|
4 # for gcov with gcc use: |
|
|
|
5 # make CC=gcc CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs" |
|
|
|
6 |
|
|
|
7 awk ' |
|
|
|
8 function encode(s) { |
|
|
|
9 return s; |
|
|
|
10 } |
|
|
|
11 /^ -:/ { |
|
|
|
12 print encode($0); |
|
|
|
13 next; |
|
|
|
14 } |
|
|
|
15 /^ #####:/ { |
|
|
|
16 print "\x1b[7m" encode($0) "\x1b[0m"; |
|
|
|
17 next; |
|
|
|
18 } |
|
|
|
19 { |
|
|
|
20 print encode($0); |
|
|
|
21 next; |
|
|
|
22 } |
|
|
|
23 ' |
|