-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated .gitignore, added run_test_coverage for local builds
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,10 @@ | |
*.out | ||
*.app | ||
|
||
*.gcov | ||
*.gcda | ||
*.gcno | ||
|
||
compandit | ||
companders_fulltest | ||
.aider* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
#this shell script calls the code coverage testing program gcov (part of the gcc suite) | ||
#you can run each command on your own at the command line | ||
|
||
#fist clean all object files | ||
make clean | ||
|
||
#compile all the test program, link etc | ||
make test | ||
|
||
# run the example.out program ... with test coverage (see makefile for flags) | ||
./companders_fulltest | ||
|
||
# gcov is the gcc suite test coverage program. We're interested in the coverage | ||
# the companders.c file. | ||
gcov companders.c | ||
|
||
# now the code coverage is in this file: | ||
# companders.c.gcov | ||
# which can be viewed in any text editor |