File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 3131* .out
3232* .app
3333
34+ * .gcov
35+ * .gcda
36+ * .gcno
37+
3438compandit
3539companders_fulltest
3640.aider *
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # this shell script calls the code coverage testing program gcov (part of the gcc suite)
4+ # you can run each command on your own at the command line
5+
6+ # fist clean all object files
7+ make clean
8+
9+ # compile all the test program, link etc
10+ make test
11+
12+ # run the example.out program ... with test coverage (see makefile for flags)
13+ ./companders_fulltest
14+
15+ # gcov is the gcc suite test coverage program. We're interested in the coverage
16+ # the companders.c file.
17+ gcov companders.c
18+
19+ # now the code coverage is in this file:
20+ # companders.c.gcov
21+ # which can be viewed in any text editor
You can’t perform that action at this time.
0 commit comments