From: "Guillermo E. Martinez" <guillermo.e.martinez@oracle.com>
To: Dodji Seketeli <dodji@seketeli.org>
Cc: "Guillermo E. Martinez via Libabigail" <libabigail@sourceware.org>
Subject: Re: [PATCH] Add regression tests for abipkgdiff using ctf info
Date: Mon, 04 Jul 2022 11:01:24 -0500 [thread overview]
Message-ID: <7401018.EvYhyI6sBW@sali> (raw)
In-Reply-To: <87edz1cpjb.fsf@seketeli.org>
On Monday, July 4, 2022 2:20:24 AM CDT Dodji Seketeli wrote:
> Hello Guillermo,
>
> "Guillermo E. Martinez" <guillermo.e.martinez@oracle.com> a écrit:
>
> >> > * tests/test-diff-pkg-ctf.cc: Testsuite for abipkgdiff --ctf.
> >>
> >> Why come up with a something else but test-diff-pkg.cc just to test RPMs
> >> using abipkgdiff --ctf?
> > Actually that was my first approach, but looking inside of the acts to perform
> > the abipkgdiff DWARFs test, the steps could be changed in the feature
> > (new steps in `perform' member function applied to DWARFs not applicable to CTF),
>
> Sorry, I am not sure to understand this. What are the steps that would
> exist for DWARF that would not in CTF, and that would have to be handled
> at the testing level, rather than at the level of abipkgdiff/libabigail
> itself? This is a honest question. I can't think of any such case
> right now. Do you see any?
hmm Ok, for instance CTF support debug info embedded in binary files by default,
so no need to use `set_debug_packages_path' (I know, I added isl-debuginfo-0.16 ..
as unit test entry because nowadays eu-strip remove .ctf section by default) ,
for sure this option is handled in abipkgdiff/libabigail but DWARF and CFT tests
share `set_debug_packages_path' this will make sense just DWARF test in the
future of course.
> > so it was my motivation to split the tests. But of course these are my
> > thoughts, and I will follow you advices because you have much more
> > experience. So what do you think, worth split the tests for DWARF and CTF?
> >> I mean, can't we just use test-diff-pkg.cc and fill in entries made of
> >> instances of struct InOutSpec with InOutSpec::prog_option filled in with
> >> a string prefixed by " --ctf " ?
> >>
> >> Of course, those ctf-related entries would be guarded by #ifdef WITH_CTF
> >> or the like.
> >>
> >>
> >> Wouldn't that work and be simpler?
> > For the current implementation, absolutely.
>
> Then I'd rather keep the simpler way for now. Unless you think there is
> an absolute need for the more complicated choice right now, of course.
Ok, I will do so.
Thanks for your advices!,
guillermo
next prev parent reply other threads:[~2022-07-04 16:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 15:16 Guillermo E. Martinez
2022-07-01 14:40 ` Dodji Seketeli
2022-07-01 16:08 ` Guillermo E. Martinez
2022-07-04 7:20 ` Dodji Seketeli
2022-07-04 16:01 ` Guillermo E. Martinez [this message]
2022-07-05 1:00 ` [PATCH v2] " Guillermo E. Martinez
2022-07-08 13:46 ` Dodji Seketeli
2022-07-08 14:30 ` [PATCH v3] " Guillermo E. Martinez
2022-07-11 10:55 ` Dodji Seketeli
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=7401018.EvYhyI6sBW@sali \
--to=guillermo.e.martinez@oracle.com \
--cc=dodji@seketeli.org \
--cc=libabigail@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).