xref: /aoo41x/main/sal/qa/helper/gcov/statistics (revision e4af8f11)
1*e4af8f11SPedro Giffuni#!/bin/sh
2cdf0e10cSrcweir# $Id: statistics,v 1.3 2003-06-11 16:38:03 vg Exp $
3cdf0e10cSrcweir
4cdf0e10cSrcweir./gcov_filter.pl -i ../../../util/sal.map --showallfunc FOO | sort | uniq >exportedfunctions.txt
5cdf0e10cSrcweir
6cdf0e10cSrcweir# gives the number off all files.
7cdf0e10cSrcweir./gcov_filter.pl -i ../../../util/sal.map --allfuncinfo FOO
8cdf0e10cSrcweir
9cdf0e10cSrcweir./gcov_all --no-percentage | sort | uniq >allchecked.txt
10cdf0e10cSrcweir
11cdf0e10cSrcweir# gives the number of all testable functions
12cdf0e10cSrcweirecho -n "    testable functions: "
13cdf0e10cSrcweircat allchecked.txt | wc -l
14cdf0e10cSrcweir
15cdf0e10cSrcweir# gives a list of all checked functions within gcov.
16cdf0e10cSrcweir./gcov_all | sort +1 | uniq >realallchecked.txt
17cdf0e10cSrcweir
18cdf0e10cSrcweir# output all functions, which are not tested by gcov -f, due to the fact, that they where not found
19cdf0e10cSrcweircomm -3 exportedfunctions.txt allchecked.txt >notfound.txt
20cdf0e10cSrcweir
21