We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eecfa3c commit 27655e4Copy full SHA for 27655e4
2 files changed
.gitignore
@@ -31,6 +31,10 @@
31
*.out
32
*.app
33
34
+*.gcov
35
+*.gcda
36
+*.gcno
37
+
38
compandit
39
companders_fulltest
40
.aider*
run_test_coverage.sh
@@ -0,0 +1,21 @@
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
0 commit comments