| 1 |
Here are some examples for using the run the test coverage. |
| 2 |
|
| 3 |
On bandito, i need the new gcc lib in my path setenv LD_LIBRARY_PATH |
| 4 |
/opt/gcc-3.4.4/lib |
| 5 |
|
| 6 |
cd ~cgbaker/Trilinos/CODE_COV |
| 7 |
<run config script and make> |
| 8 |
cd ~cgbaker/Trilinos |
| 9 |
./commonTools/test/coverage/testcoverage \ |
| 10 |
--trilinos-dir=/home/cgbaker/Trilinos \ |
| 11 |
--build-dir=CODE_COV \ |
| 12 |
--with-gcov=/opt/gcc-3.4.4/bin/gcov \ |
| 13 |
--with-package=anasazi \ |
| 14 |
--with-package=epetra \ |
| 15 |
--with-package=teuchos \ |
| 16 |
--with-package=triutils \ |
| 17 |
--run-tests |
| 18 |
|
| 19 |
For directory summaries, same as above but without the --with-packages |
| 20 |
./commonTools/test/coverage/testcoverage \ |
| 21 |
--trilinos-dir=/home/cgbaker/Trilinos \ |
| 22 |
--build-dir=CODE_COV \ |
| 23 |
--with-gcov=/opt/gcc-3.4.4/bin/gcov |
| 24 |
|
| 25 |
For specific directory summaries, try |
| 26 |
./commonTools/test/coverage/testcoverage \ |
| 27 |
--trilinos-dir=/home/cgbaker/Trilinos \ |
| 28 |
--build-dir=CODE_COV \ |
| 29 |
--with-gcov=/opt/gcc-3.4.4/bin/gcov \ |
| 30 |
--with-package=anasazi \ |
| 31 |
--with-package=epetra \ |
| 32 |
--with-package=teuchos \ |
| 33 |
--with-package=triutils \ |
| 34 |
--without-files \ |
| 35 |
--with-directories |
| 36 |
|
| 37 |
|
| 38 |
For line-by-line code listing with coverage information, add the --with-report |
| 39 |
flag, which will be passed on to gcovmerge. This creates an HTML file called |
| 40 |
coverage.html. This file contains the contents of each source file analyzed by |
| 41 |
gcovmerge, so it may be very large. |
| 42 |
|
| 43 |
Tests only need be run once per compile. Afterwards, just neglect the |
| 44 |
--run-tests option. |
| 45 |
|
| 46 |
For help on testcoverage, type `testcoverage --help` |