File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 31
31
* .out
32
32
* .app
33
33
34
+ * .gcov
35
+ * .gcda
36
+ * .gcno
37
+
34
38
compandit
35
39
companders_fulltest
36
40
.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