From: Yao Qi <qiyaoltc@gmail.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: GDB test coverage
Date: Tue, 08 Nov 2016 17:38:00 -0000 [thread overview]
Message-ID: <CAH=s-PPB7pb1ZFj2GZXeqMsW+H74UQduqeDkSZsS2i+YLd48iA@mail.gmail.com> (raw)
Hi,
We had the doc on wiki about doing coverage tests to GDB,
https://sourceware.org/gdb/wiki/TestingGDB#Coverage_Testing
and I give it a try last week. Get some interesting results to share
now,
http://people.linaro.org/~yao.qi/gdb/coverage/20161102/
In general, the coverage is better than I expected :-). Some initial
analysis to the coverage data,
- the coverage in linux-record.c is low, because we don't test many
syscalls in gdb.reverse,
- the coverage in *-lang.c is low. Looks we are still lack of language
related tests.
- we don't test all the start options in gdb, see the coverage in
main.c:captured_main_1
- we don't test "set cp-abi", "set extension-language", "delete checkpoint"
"detach checkpopint",
- here is a list of functions are never used,
main.c:get_gdb_program_name,
corefile.c:read_stack,
valarith.c:value_in,
- linux_gdb_signal_from_target and linux_gdb_signal_to_target are not
well covered,
I am sure we can still get more from these coverage results. How do we
make full use of coverage tests? What I can think of are
- we can find some never-used functions, and remove some of them,
- add more test cases to address some low-coverage areas,
--
Yao (齐尧)
next reply other threads:[~2016-11-08 17:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-08 17:38 Yao Qi [this message]
2016-11-08 18:34 ` Matt Rice
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH=s-PPB7pb1ZFj2GZXeqMsW+H74UQduqeDkSZsS2i+YLd48iA@mail.gmail.com' \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox