Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [PATCH] Add test that exercises all bfd architecture, osabi, endian, etc. combinations
Date: Fri, 09 Dec 2016 13:11:00 -0000	[thread overview]
Message-ID: <3dd7c6fe-b195-1b6a-4bf4-ffdae0bf7485@redhat.com> (raw)
In-Reply-To: <1457541365-5637-1-git-send-email-palves@redhat.com>

(long time passed...)

On 03/09/2016 04:36 PM, Pedro Alves wrote:
> This adds a test that exposes several problems fixed by previous patches:
> 
> #1 - Buffer overrun when host/target formats match, but sizes don't.
>      https://sourceware.org/ml/gdb-patches/2016-03/msg00125.html
> 
> #2 - Missing handling for FR-V FR300.
>      https://sourceware.org/ml/gdb-patches/2016-03/msg00117.html
> 
> #3 - BFD architectures with spaces in their names (v850).
>      https://sourceware.org/ml/binutils/2016-03/msg00108.html
> 
> #4 - The OS ABI names with spaces issue.
>      https://sourceware.org/ml/gdb-patches/2016-03/msg00116.html
> 
> #5 - Bogus HP/PA long double format.
>      https://sourceware.org/ml/gdb-patches/2016-03/msg00122.html
> 
> #6 - Cris big endian internal error.
>      https://sourceware.org/ml/gdb-patches/2016-03/msg00126.html
> 
> #7 - Several PowerPC bfd archs/machines not handled by gdb.
>      https://sourceware.org/bugzilla/show_bug.cgi?id=19797
> 
> And hopefully helps catch others in the future.
> 
> This started out as a test that simply did,
> 
>  gdb -ex "print 1.0L"
> 
> to exercise #1 above.
> 
> Then to cover both 32-bit target / 64-bit host and the converse, I
> thought of having the testcase print the floats twice, once with the
> architecture set to "i386" and then to "i386:x86-64".  This way it
> wouldn't matter whether gdb was built as 32-bit or a 64-bit program.
> 
> Then I thought that other archs might have similar host/target
> floatformat conversion issues as well.  Instead of hardcoding some
> architectures in the test file, I thought we could just iterate over
> all bfd architectures and OS ABIs supported by the gdb build being
> tested.  This is what then exposed all the other problems listed
> above...
> 
> With an --enable-targets=all, this exercises over 14 thousand
> combinations.  Fortunately, it still consistenly runs in under a
> minute on my machine (An Intel i7-4810MQ @ 2.8 MHZ running Fedora 23),
> which I think with a parallel run is not that much of a big deal, as
> we have other similarly long tests.

This test would have caught the rl78 and rx problems that Yao
fixed today.  Clearly I should have pushed it in earlier so we would
have caught those regressions earlier.  :-/
The only reason I didn't, was that minute mentioned above.
I'm playing with splitting this test in 4 files, to bring that down
in a parallel run.  I'll repost with that.

Thanks,
Pedro Alves


  reply	other threads:[~2016-12-09 13:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-09 16:36 Pedro Alves
2016-12-09 13:11 ` Pedro Alves [this message]
2016-12-09 13:56   ` Yao Qi
2016-12-09 14:32     ` Pedro Alves
2016-12-09 14:56       ` Yao Qi
2016-12-09 14:58         ` Pedro Alves
2016-12-09 15:06           ` Pedro Alves

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=3dd7c6fe-b195-1b6a-4bf4-ffdae0bf7485@redhat.com \
    --to=palves@redhat.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