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