Skip to content

Commit 27655e4

Browse files
committed
updated .gitignore, added run_test_coverage for local builds
1 parent eecfa3c commit 27655e4

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
*.out
3232
*.app
3333

34+
*.gcov
35+
*.gcda
36+
*.gcno
37+
3438
compandit
3539
companders_fulltest
3640
.aider*

run_test_coverage.sh

+21
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)