qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: Wei Yang <richardw.yang@linux.intel.com>
Cc: qemu-devel@nongnu.org, "Laszlo Ersek" <lersek@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Gonglei <arei.gonglei@huawei.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Shannon Zhao" <shannon.zhaosl@gmail.com>,
	"Andrew Jones" <drjones@redhat.com>,
	"Shameer Kolothum" <shameerali.kolothum.thodi@huawei.com>,
	"Ben Warren" <ben@skyportsystems.com>
Subject: Re: [Qemu-devel] [PATCH v3 12/13] tests: acpi: refactor rebuild-expected-aml.sh to dump ACPI tables for a specified list of targets
Date: Thu, 25 Apr 2019 13:32:50 +0200	[thread overview]
Message-ID: <20190425133250.69ec66dc@redhat.com> (raw)
In-Reply-To: <20190425082050.GF24829@richard>

On Thu, 25 Apr 2019 16:20:50 +0800
Wei Yang <richardw.yang@linux.intel.com> wrote:

> On Thu, Apr 25, 2019 at 07:34:48AM +0200, Igor Mammedov wrote:
> >Make initial list contain aarch64 and x86_64 targets.  
> 
> so i386 is taken out?
> 
> >
> >Signed-off-by: Igor Mammedov <imammedo@redhat.com>
> >Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> >---
> >v2:
> > * fix up error message (Philippe Mathieu-Daudé <philmd@redhat.com>)
> >---
> > tests/data/acpi/rebuild-expected-aml.sh | 23 +++++++++++------------
> > 1 file changed, 11 insertions(+), 12 deletions(-)
> >
> >diff --git a/tests/data/acpi/rebuild-expected-aml.sh b/tests/data/acpi/rebuild-expected-aml.sh
> >index abdff70..52793f3 100755
> >--- a/tests/data/acpi/rebuild-expected-aml.sh
> >+++ b/tests/data/acpi/rebuild-expected-aml.sh
> >@@ -7,21 +7,12 @@
> > #
> > # Authors:
> > #  Marcel Apfelbaum <marcel.a@redhat.com>
> >+#  Igor Mammedov <imammedo@redhat.com>
> > #
> > # This work is licensed under the terms of the GNU GPLv2.
> > # See the COPYING.LIB file in the top-level directory.
> > 
> >-qemu=
> >-
> >-if [ -e x86_64-softmmu/qemu-system-x86_64 ]; then
> >-    qemu="x86_64-softmmu/qemu-system-x86_64"
> >-elif [ -e i386-softmmu/qemu-system-i386 ]; then
> >-    qemu="i386-softmmu/qemu-system-i386"
> >-else
> >-    echo "Run 'make' to build the qemu exectutable!"
> >-    echo "Run this script from the build directory."
> >-    exit 1;
> >-fi
> >+qemu_bins="aarch64-softmmu/qemu-system-aarch64 x86_64-softmmu/qemu-system-x86_64"
> > 
> > if [ ! -e "tests/bios-tables-test" ]; then
> >     echo "Test: bios-tables-test is required! Run make check before this script."
> >@@ -29,6 +20,14 @@ if [ ! -e "tests/bios-tables-test" ]; then
> >     exit 1;
> > fi
> > 
> >-TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/bios-tables-test
> >+for qemu in $qemu_bins; do
> >+    if [ ! -e $qemu ]; then
> >+        echo "Run 'make' to build the following QEMU exectutables: $qemu_bins"  
> 
> s/exectutables/executables

fixed
 
> >+        echo "Also, run this script from the build directory."
> >+        exit 1;
> >+    fi
> >+    TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/bios-tables-test
> >+done
> >+  
> 
> The original behavior is either one executable exist will pass.
> 
> But now, either of one doesn't exist will fail. Is this what we expect?

It's mainly maintainers tool to update reference blobs.
And I intentionally made it fail to force maintainer/developer
building all targets that depend on ACPI to make sure
that mistakes won't silently creep in due to non build target.

> > echo "The files were rebuilt and can be added to git."
> >-- 
> >2.7.4  
> 

WARNING: multiple messages have this Message-ID (diff)
From: Igor Mammedov <imammedo@redhat.com>
To: Wei Yang <richardw.yang@linux.intel.com>
Cc: "Andrew Jones" <drjones@redhat.com>,
	"Ben Warren" <ben@skyportsystems.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Laszlo Ersek" <lersek@redhat.com>,
	qemu-devel@nongnu.org,
	"Shameer Kolothum" <shameerali.kolothum.thodi@huawei.com>,
	"Shannon Zhao" <shannon.zhaosl@gmail.com>,
	Gonglei <arei.gonglei@huawei.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 12/13] tests: acpi: refactor rebuild-expected-aml.sh to dump ACPI tables for a specified list of targets
Date: Thu, 25 Apr 2019 13:32:50 +0200	[thread overview]
Message-ID: <20190425133250.69ec66dc@redhat.com> (raw)
Message-ID: <20190425113250.QuFGmyO6a4JCxYUZqZ3MA7FebSP4-NQ4JvCyLQ0eMtU@z> (raw)
In-Reply-To: <20190425082050.GF24829@richard>

On Thu, 25 Apr 2019 16:20:50 +0800
Wei Yang <richardw.yang@linux.intel.com> wrote:

> On Thu, Apr 25, 2019 at 07:34:48AM +0200, Igor Mammedov wrote:
> >Make initial list contain aarch64 and x86_64 targets.  
> 
> so i386 is taken out?
> 
> >
> >Signed-off-by: Igor Mammedov <imammedo@redhat.com>
> >Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> >---
> >v2:
> > * fix up error message (Philippe Mathieu-Daudé <philmd@redhat.com>)
> >---
> > tests/data/acpi/rebuild-expected-aml.sh | 23 +++++++++++------------
> > 1 file changed, 11 insertions(+), 12 deletions(-)
> >
> >diff --git a/tests/data/acpi/rebuild-expected-aml.sh b/tests/data/acpi/rebuild-expected-aml.sh
> >index abdff70..52793f3 100755
> >--- a/tests/data/acpi/rebuild-expected-aml.sh
> >+++ b/tests/data/acpi/rebuild-expected-aml.sh
> >@@ -7,21 +7,12 @@
> > #
> > # Authors:
> > #  Marcel Apfelbaum <marcel.a@redhat.com>
> >+#  Igor Mammedov <imammedo@redhat.com>
> > #
> > # This work is licensed under the terms of the GNU GPLv2.
> > # See the COPYING.LIB file in the top-level directory.
> > 
> >-qemu=
> >-
> >-if [ -e x86_64-softmmu/qemu-system-x86_64 ]; then
> >-    qemu="x86_64-softmmu/qemu-system-x86_64"
> >-elif [ -e i386-softmmu/qemu-system-i386 ]; then
> >-    qemu="i386-softmmu/qemu-system-i386"
> >-else
> >-    echo "Run 'make' to build the qemu exectutable!"
> >-    echo "Run this script from the build directory."
> >-    exit 1;
> >-fi
> >+qemu_bins="aarch64-softmmu/qemu-system-aarch64 x86_64-softmmu/qemu-system-x86_64"
> > 
> > if [ ! -e "tests/bios-tables-test" ]; then
> >     echo "Test: bios-tables-test is required! Run make check before this script."
> >@@ -29,6 +20,14 @@ if [ ! -e "tests/bios-tables-test" ]; then
> >     exit 1;
> > fi
> > 
> >-TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/bios-tables-test
> >+for qemu in $qemu_bins; do
> >+    if [ ! -e $qemu ]; then
> >+        echo "Run 'make' to build the following QEMU exectutables: $qemu_bins"  
> 
> s/exectutables/executables

fixed
 
> >+        echo "Also, run this script from the build directory."
> >+        exit 1;
> >+    fi
> >+    TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/bios-tables-test
> >+done
> >+  
> 
> The original behavior is either one executable exist will pass.
> 
> But now, either of one doesn't exist will fail. Is this what we expect?

It's mainly maintainers tool to update reference blobs.
And I intentionally made it fail to force maintainer/developer
building all targets that depend on ACPI to make sure
that mistakes won't silently creep in due to non build target.

> > echo "The files were rebuilt and can be added to git."
> >-- 
> >2.7.4  
> 



  parent reply	other threads:[~2019-04-25 11:33 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25  5:34 [Qemu-devel] [PATCH v3 00/13] tests: acpi: add UEFI (ARM) testing support Igor Mammedov
2019-04-25  5:34 ` Igor Mammedov
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 01/13] tests: acpi: make RSDT test routine handle XSDT Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  7:22   ` Wei Yang
2019-04-25  7:22     ` Wei Yang
2019-04-25  8:07     ` Igor Mammedov
2019-04-25  8:07       ` Igor Mammedov
2019-04-25  8:23       ` Wei Yang
2019-04-25  8:23         ` Wei Yang
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 02/13] tests: acpi: rename acpi_parse_rsdp_table() into acpi_fetch_rsdp_table() Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  7:24   ` Wei Yang
2019-04-25  7:24     ` Wei Yang
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 03/13] tests: acpi: make pointer to RSDP 64bit Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  7:31   ` Wei Yang
2019-04-25  7:31     ` Wei Yang
2019-04-25 10:38     ` Igor Mammedov
2019-04-25 10:38       ` Igor Mammedov
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 04/13] tests: acpi: fetch X_DSDT if pointer to DSDT is 0 Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  7:44   ` Wei Yang
2019-04-25  7:44     ` Wei Yang
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 05/13] tests: acpi: skip FACS table if board uses hw reduced ACPI profile Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  7:48   ` Wei Yang
2019-04-25  7:48     ` Wei Yang
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 06/13] tests: acpi: move boot_sector_init() into x86 tests branch Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 07/13] tests: acpi: add acpi_find_rsdp_address_uefi() helper Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  8:00   ` Wei Yang
2019-04-25  8:00     ` Wei Yang
2019-04-25 10:56     ` Igor Mammedov
2019-04-25 10:56       ` Igor Mammedov
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 08/13] tests: acpi: add a way to start tests with UEFI firmware Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  8:08   ` Wei Yang
2019-04-25  8:08     ` Wei Yang
2019-04-25 11:19     ` Igor Mammedov
2019-04-25 11:19       ` Igor Mammedov
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 09/13] tests: acpi: ignore SMBIOS tests when UEFI firmware is used Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25 12:37   ` Philippe Mathieu-Daudé
2019-04-25 12:37     ` Philippe Mathieu-Daudé
2019-04-25 13:28     ` Igor Mammedov
2019-04-25 13:28       ` Igor Mammedov
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 10/13] tests: add expected ACPI tables for arm/virt board Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25 12:40   ` Philippe Mathieu-Daudé
2019-04-25 12:40     ` Philippe Mathieu-Daudé
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 11/13] tests: acpi: add simple arm/virt testcase Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25 12:41   ` Philippe Mathieu-Daudé
2019-04-25 12:41     ` Philippe Mathieu-Daudé
2019-04-25 13:31     ` Igor Mammedov
2019-04-25 13:31       ` Igor Mammedov
2019-04-25 16:51   ` x00249684
2019-04-25 16:51     ` x00249684
2019-04-26 11:54     ` Igor Mammedov
2019-04-26 11:54       ` Igor Mammedov
2019-04-26 16:28       ` Wei Xu
2019-04-26 16:28         ` Wei Xu
2019-05-02 14:24         ` Igor Mammedov
2019-05-02 14:24           ` Igor Mammedov
2019-05-02 14:30           ` Wei Xu
2019-05-02 14:30             ` Wei Xu
2019-04-26 17:11   ` Laszlo Ersek
2019-04-26 17:11     ` Laszlo Ersek
2019-05-02 14:27     ` Igor Mammedov
2019-05-02 14:27       ` Igor Mammedov
2019-05-02 14:42       ` Laszlo Ersek
2019-05-02 14:42         ` Laszlo Ersek
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 12/13] tests: acpi: refactor rebuild-expected-aml.sh to dump ACPI tables for a specified list of targets Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  8:20   ` Wei Yang
2019-04-25  8:20     ` Wei Yang
2019-04-25 11:32     ` Igor Mammedov [this message]
2019-04-25 11:32       ` Igor Mammedov
2019-04-25 11:46       ` Igor Mammedov
2019-04-25 11:46         ` Igor Mammedov
2019-04-25  5:34 ` [Qemu-devel] [PATCH v3 13/13] tests: acpi: print error unable to dump ACPI table during rebuild Igor Mammedov
2019-04-25  5:34   ` Igor Mammedov
2019-04-25  8:22   ` Wei Yang
2019-04-25  8:22     ` Wei Yang
2019-04-25 11:26   ` Philippe Mathieu-Daudé
2019-04-25 11:26     ` Philippe Mathieu-Daudé

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=20190425133250.69ec66dc@redhat.com \
    --to=imammedo@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=ben@skyportsystems.com \
    --cc=drjones@redhat.com \
    --cc=lersek@redhat.com \
    --cc=mst@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richardw.yang@linux.intel.com \
    --cc=shameerali.kolothum.thodi@huawei.com \
    --cc=shannon.zhaosl@gmail.com \
    /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).