From: Richard Henderson <richard.henderson@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [PATCH 6/6] tests/decode: Add tests for various named-field cases
Date: Fri, 26 May 2023 10:07:36 -0700 [thread overview]
Message-ID: <aed8ee53-9482-8932-d2e8-d3b520de809f@linaro.org> (raw)
In-Reply-To: <CAFEAcA-5DvFB1JiCwj1Gb7WUST4-OAyJ8nYDQax_msFZuFNhnQ@mail.gmail.com>
On 5/24/23 03:26, Peter Maydell wrote:
> On Tue, 23 May 2023 at 13:04, Peter Maydell <peter.maydell@linaro.org> wrote:
>>
>> Add some tests for various cases of named-field use, both ones that
>> should work and ones that should be diagnosed as errors.
>>
>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>> ---
>> tests/decode/err_field1.decode | 2 +-
>> tests/decode/err_field10.decode | 7 +++++++
>> tests/decode/err_field7.decode | 7 +++++++
>> tests/decode/err_field8.decode | 8 ++++++++
>> tests/decode/err_field9.decode | 14 ++++++++++++++
>> tests/decode/succ_named_field.decode | 19 +++++++++++++++++++
>> 6 files changed, 56 insertions(+), 1 deletion(-)
>> create mode 100644 tests/decode/err_field10.decode
>> create mode 100644 tests/decode/err_field7.decode
>> create mode 100644 tests/decode/err_field8.decode
>> create mode 100644 tests/decode/err_field9.decode
>> create mode 100644 tests/decode/succ_named_field.decode
>>
>> diff --git a/tests/decode/err_field1.decode b/tests/decode/err_field1.decode
>> index e07a5a73e0e..85c3f326d07 100644
>> --- a/tests/decode/err_field1.decode
>> +++ b/tests/decode/err_field1.decode
>> @@ -2,4 +2,4 @@
>> # See the COPYING.LIB file in the top-level directory.
>>
>> # Diagnose invalid field syntax
>> -%field asdf
>> +%field 1asdf
>
> I just realized that this specific change needs to go before patch 5:
> it's updating an existing test because "asdf" used to be invalid
> syntax and now is not. Otherwise bisection will break.
Really? The test still fails here at patch 5:
/home/rth/qemu/bld/../src/tests/decode/err_field1.decode:5: error: invalid field token "asdf"
r~
next prev parent reply other threads:[~2023-05-26 17:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 12:04 [PATCH 0/6] decodetree: support named fields Peter Maydell
2023-05-23 12:04 ` [PATCH 1/6] tests/decodetree/check.sh: Exit failure for all failures Peter Maydell
2023-05-23 17:49 ` Richard Henderson
2023-05-23 12:04 ` [PATCH 2/6] docs: Document decodetree named field syntax Peter Maydell
2023-05-23 17:59 ` Richard Henderson
2023-05-23 12:04 ` [PATCH 3/6] scripts/decodetree: Pass lvalue-formatter function to str_extract() Peter Maydell
2023-05-23 18:02 ` Richard Henderson
2023-05-23 12:04 ` [PATCH 4/6] scripts/decodetree: Implement a topological sort Peter Maydell
2023-05-23 18:12 ` Richard Henderson
2023-05-23 12:04 ` [PATCH 5/6] scripts/decodetree: Implement named field support Peter Maydell
2023-05-23 18:17 ` Richard Henderson
2023-05-23 12:04 ` [PATCH 6/6] tests/decode: Add tests for various named-field cases Peter Maydell
2023-05-23 18:20 ` Richard Henderson
2023-05-24 10:26 ` Peter Maydell
2023-05-26 17:07 ` Richard Henderson [this message]
2023-05-26 19:49 ` Peter Maydell
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=aed8ee53-9482-8932-d2e8-d3b520de809f@linaro.org \
--to=richard.henderson@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 NNTP newsgroup(s).