This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to create test suite .d files?
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Patrick Conlon <cptjustice at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 6 Aug 2018 16:30:52 +0100 (BST)
- Subject: Re: How to create test suite .d files?
- References: <CAKhaShc_V4d6h7vZp8cnvxuovNSWPoOJD_Oq6zTbk=cQo0PC5A@mail.gmail.com>
On Mon, 6 Aug 2018, Patrick Conlon wrote:
> Thinking to make maintainers' lives easier, I submitted some test assembly
> along with a patch. What I haven't been able to figure out is how to
> create the .d files in the test suite nor whatever documentation there is
> regarding them. While they is obviously a variation of objdump, when I run
> it with the command line flags listed in other .d files, I don't get the
> same output.
See the inline documentation at individual `run_dump_test' procedures in
`binutils/testsuite/lib/utils-lib.exp', `gas/testsuite/lib/gas-defs.exp'
and `ld/testsuite/lib/ld-lib.exp', respectively. Please note the slight
differences in options according to the tool being tested, and also that
the dumps need not necessarily be from `objdump', as `readelf' and `nm'
are also commonly used for output examination.
HTH,
Maciej