git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/8] Support coverage testing with GCC/gcov

From
Thomas Rast <trast@student.ethz.ch>
Date
Feb 15, 2009, 22:25 UTC
Message-ID
<cover.1234736374.git.trast@student.ethz.ch>
So I found a new toy to play with ;-)

The first patch adds some Makefile rules to automate coverage testing. This initially resulted in a list of 497 untested functions. Then I picked out some easy targets and made patches for them. This shortens the list by 20.

Note that the rules currently don't consider any of the subdirectories. I'm not sure if arm, ppc, and compat are worth considering, but it would at least have been nice to support it for xdiff. Unfortunately I can't convince the --coverage code to save results there, so no analysis is possible. (Running gcc 4.3.2 here.)

BTW, I find it a bit scary that fsck (see 5/8) has so few tests, and even scarier that out of four simple tests I could come up with it only passes two. Let's hope the other two are unreasonable.

Thomas Rast (8):
  Support coverage testing with GCC/gcov
  Test that diff can read from stdin
  Test diff --dirstat functionality
  Test log --graph
  Test fsck a bit harder
  Test log --decorate
  Test rev-list --parents/--children
  Test git-patch-id
 Makefile                                      |   23 ++++
 t/t1450-fsck.sh                               |   65 +++++++++++
 t/t4002-diff-basic.sh                         |    8 ++
 t/t4013-diff-various.sh                       |    5 +
 t/t4013/diff.diff_--dirstat_master~1_master~2 |    3 +
 t/t4013/diff.log_--decorate_--all             |   34 ++++++
 t/t4013/diff.rev-list_--children_HEAD         |    7 +
 t/t4013/diff.rev-list_--parents_HEAD          |    7 +
 t/t4202-log.sh                                |  148 +++++++++++++++++++++++++
 t/t4203-patch-id.sh                           |   38 +++++++
 10 files changed, 338 insertions(+), 0 deletions(-)
 create mode 100644 t/t4013/diff.diff_--dirstat_master~1_master~2
 create mode 100644 t/t4013/diff.log_--decorate_--all
 create mode 100644 t/t4013/diff.rev-list_--children_HEAD
 create mode 100644 t/t4013/diff.rev-list_--parents_HEAD
 create mode 100755 t/t4203-patch-id.sh
Next: Thomas Rast
Message 1 of 11 in “Support coverage testing with GCC/gcov”
  1. 0/8 Support coverage testing with GCC/gcovThomas Rast, Feb 15, 2009
  2. 1/8 Support coverage testing with GCC/gcovThomas Rast, Feb 15, 2009
  3. Matthieu MoyFeb 16, 2009
  4. Thomas RastFeb 16, 2009
  5. 2/8 Test that diff can read from stdinThomas Rast, Feb 15, 2009
  6. 3/8 Test diff --dirstat functionalityThomas Rast, Feb 15, 2009
  7. 4/8 Test log --graphThomas Rast, Feb 15, 2009
  8. 5/8 Test fsck a bit harderThomas Rast, Feb 15, 2009
  9. 6/8 Test log --decorateThomas Rast, Feb 15, 2009
  10. 7/8 Test rev-list --parents/--childrenThomas Rast, Feb 15, 2009
  11. 8/8 Test git-patch-idThomas Rast, Feb 15, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.