From: Thomas Huth <thuth@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>, qemu-devel@nongnu.org
Cc: Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Igor Mammedov <imammedo@redhat.com>
Subject: Re: [PATCH] tests: document how to update acpi tables
Date: Mon, 7 Oct 2019 17:06:01 +0200 [thread overview]
Message-ID: <68e4bd77-e3b4-186f-8ec4-9ecbf9c69bfd@redhat.com> (raw)
In-Reply-To: <20191005212709.26101-1-mst@redhat.com>
On 05/10/2019 23.27, Michael S. Tsirkin wrote:
> Looks like no one understands how to do it.
> Document the process.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> tests/bios-tables-test.c | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c
> index 652a78773f..0b33fb265f 100644
> --- a/tests/bios-tables-test.c
> +++ b/tests/bios-tables-test.c
> @@ -10,6 +10,33 @@
> * See the COPYING file in the top-level directory.
> */
>
> +/*
> + * How to add or update the tests:
> + * Contributor:
> + * 1. add empty files for new tables, if any, under tests/data/acpi
> + * 2. list any changed files in tests/bios-tables-test-allowed-diff.h
> + * 3. commit the above *before* making changes that affect the tables
> + * Maintainer:
> + * After 1-3 above tests will pass but ignore differences with the expected files.
> + * You will also notice that tests/bios-tables-test-allowed-diff.h lists
> + * a bunch of files. This is your hint that you need to do the below:
> + * 4. Run
> + * make check V=1
> + * this will produce a bunch of warnings about differences
> + * beween actual and expected ACPI tables. If you have IASL installed,
s/beween/between/
With that typo fixed:
Acked-by: Thomas Huth <thuth@redhat.com>
> + * they will also be disassembled so you can look at the disassembled
> + * output. If not - disassemble them yourself in any way you like.
> + * Look at the differences - make sure they make sense and match what the
> + * changes you are merging are supposed to do.
> + *
> + * 5. From build directory, run:
> + * $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh
> + * 6. Now commit any changes.
> + * 7. Before doing a pull request, make sure tests/bios-tables-test-allowed-diff.h
> + * is empty - this will ensure following changes to ACPI tables will
> + * be noticed.
> + */
> +
> #include "qemu/osdep.h"
> #include <glib/gstdio.h>
> #include "qemu-common.h"
>
prev parent reply other threads:[~2019-10-07 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-05 21:27 [PATCH] tests: document how to update acpi tables Michael S. Tsirkin
2019-10-07 15:06 ` Thomas Huth [this message]
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=68e4bd77-e3b4-186f-8ec4-9ecbf9c69bfd@redhat.com \
--to=thuth@redhat.com \
--cc=imammedo@redhat.com \
--cc=lvivier@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--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).