Use gcov and lcov to get coverage:

==============
compile w/ gcov flags
==============
GCOV can be used to gather code coverage information.  GCOV is a component of
G++, and therefore can only be used on machines which use that compiler (this
should not be an issue, as code coverage is machine-independent).  In order to
use GCOV, the configure script needs a few extra options.  Under normal
conditions, this should just be:

$./configure CXXFLAGS="-fprofile-arcs -ftest-coverage" [other options]

make
cd packages/phalanx
make everything

==============
run the tests
==============
run the test suite, this will generate the gcov files (*.gcno)

#!/usr/bin/tcsh
lcov --zerocounters \
--directory=/home/rppawlo/Trilinos/LINUX.SERIAL/packages/phalanx \
--base-directory=/home/rppawlo/Trilinos/packages/phalanx
lcov --capture \
--directory=/home/rppawlo/Trilinos/LINUX.SERIAL/packages/phalanx \
--base-directory=/home/rppawlo/Trilinos/packages/phalanx \
--output-file ./phalanx.info
