Skip to content

Commit

Permalink
updated .gitignore, added run_test_coverage for local builds
Browse files Browse the repository at this point in the history
  • Loading branch information
deftio committed Aug 9, 2024
1 parent eecfa3c commit 27655e4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
*.out
*.app

*.gcov
*.gcda
*.gcno

compandit
companders_fulltest
.aider*
21 changes: 21 additions & 0 deletions run_test_coverage.sh
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

0 comments on commit 27655e4

Please sign in to comment.