qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Add more tests to the boot-serial tester
@ 2018-02-01 10:09 Thomas Huth
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 1/3] tests/boot-serial: Enable the boot-serial test on SPARC machines, too Thomas Huth
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Thomas Huth @ 2018-02-01 10:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard Henderson, Mark Cave-Ayland

First patch adds new tests for the SPARC machines, second patch
enables the Mac machines, too, and the third patch adds a test
for the brand-new hppa softmmu machine.

Thomas Huth (3):
  tests/boot-serial: Enable the boot-serial test on SPARC machines, too
  tests/boot-serial: Add tests for PowerPC Mac machines
  tests/boot-serial: Add a test for the new hppa-softmmu target

 tests/Makefile.include   | 4 ++++
 tests/boot-serial-test.c | 8 ++++++++
 2 files changed, 12 insertions(+)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PATCH 1/3] tests/boot-serial: Enable the boot-serial test on SPARC machines, too
  2018-02-01 10:09 [Qemu-devel] [PATCH 0/3] Add more tests to the boot-serial tester Thomas Huth
@ 2018-02-01 10:09 ` Thomas Huth
  2018-02-03 10:49   ` Mark Cave-Ayland
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 2/3] tests/boot-serial: Add tests for PowerPC Mac machines Thomas Huth
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 3/3] tests/boot-serial: Add a test for the new hppa-softmmu target Thomas Huth
  2 siblings, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2018-02-01 10:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard Henderson, Mark Cave-Ayland

OpenBIOS prints out the name of the detected CPU here, so looking for
this string is a nice test to verify that the CPU detection is still
working correctly.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include   | 2 ++
 tests/boot-serial-test.c | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index ca82e0c..0b98dd7 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -350,11 +350,13 @@ check-qtest-sh4eb-y = tests/endianness-test$(EXESUF)
 check-qtest-sparc-y = tests/prom-env-test$(EXESUF)
 #check-qtest-sparc-y += tests/m48t59-test$(EXESUF)
 #gcov-files-sparc-y = hw/timer/m48t59.c
+check-qtest-sparc-y += tests/boot-serial-test$(EXESUF)
 
 check-qtest-sparc64-y = tests/endianness-test$(EXESUF)
 #check-qtest-sparc64-y += tests/m48t59-test$(EXESUF)
 #gcov-files-sparc64-y += hw/timer/m48t59.c
 check-qtest-sparc64-y += tests/prom-env-test$(EXESUF)
+check-qtest-sparc64-y += tests/boot-serial-test$(EXESUF)
 
 check-qtest-arm-y = tests/tmp105-test$(EXESUF)
 check-qtest-arm-y += tests/ds1338-test$(EXESUF)
diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c
index 418c5b9..abc7f2d 100644
--- a/tests/boot-serial-test.c
+++ b/tests/boot-serial-test.c
@@ -78,6 +78,10 @@ static testdef_t tests[] = {
     { "i386", "q35", "-device sga", "SGABIOS" },
     { "x86_64", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
     { "x86_64", "q35", "-device sga", "SGABIOS" },
+    { "sparc", "LX", "", "TMS390S10" },
+    { "sparc", "SS-4", "", "MB86904" },
+    { "sparc", "SS-600MP", "", "TMS390Z55" },
+    { "sparc64", "sun4u", "", "UltraSPARC" },
     { "s390x", "s390-ccw-virtio",
       "-nodefaults -device sclpconsole,chardev=serial0", "virtio device" },
     { "m68k", "mcf5208evb", "", "TT", sizeof(kernel_mcf5208), kernel_mcf5208 },
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PATCH 2/3] tests/boot-serial: Add tests for PowerPC Mac machines
  2018-02-01 10:09 [Qemu-devel] [PATCH 0/3] Add more tests to the boot-serial tester Thomas Huth
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 1/3] tests/boot-serial: Enable the boot-serial test on SPARC machines, too Thomas Huth
@ 2018-02-01 10:09 ` Thomas Huth
  2018-02-03 10:50   ` Mark Cave-Ayland
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 3/3] tests/boot-serial: Add a test for the new hppa-softmmu target Thomas Huth
  2 siblings, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2018-02-01 10:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard Henderson, Mark Cave-Ayland

OpenBIOS prints out the CPU type on these machine types, so we can use
this string to test whether the CPU detection is working correctly.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/boot-serial-test.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c
index abc7f2d..12bf6ec 100644
--- a/tests/boot-serial-test.c
+++ b/tests/boot-serial-test.c
@@ -69,8 +69,11 @@ static testdef_t tests[] = {
     { "alpha", "clipper", "", "PCI:" },
     { "ppc", "ppce500", "", "U-Boot" },
     { "ppc", "prep", "", "Open Hack'Ware BIOS" },
+    { "ppc", "g3beige", "", "PowerPC,750" },
+    { "ppc", "mac99", "", "PowerPC,G4" },
     { "ppc64", "ppce500", "", "U-Boot" },
     { "ppc64", "prep", "", "Open Hack'Ware BIOS" },
+    { "ppc64", "mac99", "", "PowerPC,970FX" },
     { "ppc64", "pseries", "", "Open Firmware" },
     { "ppc64", "powernv", "-cpu POWER8", "OPAL" },
     { "i386", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PATCH 3/3] tests/boot-serial: Add a test for the new hppa-softmmu target
  2018-02-01 10:09 [Qemu-devel] [PATCH 0/3] Add more tests to the boot-serial tester Thomas Huth
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 1/3] tests/boot-serial: Enable the boot-serial test on SPARC machines, too Thomas Huth
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 2/3] tests/boot-serial: Add tests for PowerPC Mac machines Thomas Huth
@ 2018-02-01 10:09 ` Thomas Huth
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2018-02-01 10:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard Henderson, Mark Cave-Ayland

The hppa machine comes with a firmware image, so we can easily
include this in the boot-serial tester, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include   | 2 ++
 tests/boot-serial-test.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 0b98dd7..6609276 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -299,6 +299,8 @@ gcov-files-x86_64-y = $(subst i386-softmmu/,x86_64-softmmu/,$(gcov-files-i386-y)
 
 check-qtest-alpha-y = tests/boot-serial-test$(EXESUF)
 
+check-qtest-hppa-y = tests/boot-serial-test$(EXESUF)
+
 check-qtest-m68k-y = tests/boot-serial-test$(EXESUF)
 
 check-qtest-microblaze-y = tests/boot-serial-test$(EXESUF)
diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c
index 12bf6ec..ddaa78f 100644
--- a/tests/boot-serial-test.c
+++ b/tests/boot-serial-test.c
@@ -67,6 +67,7 @@ typedef struct testdef {
 
 static testdef_t tests[] = {
     { "alpha", "clipper", "", "PCI:" },
+    { "hppa", "hppa", "", "Firmware Version" },
     { "ppc", "ppce500", "", "U-Boot" },
     { "ppc", "prep", "", "Open Hack'Ware BIOS" },
     { "ppc", "g3beige", "", "PowerPC,750" },
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH 1/3] tests/boot-serial: Enable the boot-serial test on SPARC machines, too
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 1/3] tests/boot-serial: Enable the boot-serial test on SPARC machines, too Thomas Huth
@ 2018-02-03 10:49   ` Mark Cave-Ayland
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Cave-Ayland @ 2018-02-03 10:49 UTC (permalink / raw)
  To: Thomas Huth, qemu-devel; +Cc: Richard Henderson

On 01/02/18 10:09, Thomas Huth wrote:
> OpenBIOS prints out the name of the detected CPU here, so looking for
> this string is a nice test to verify that the CPU detection is still
> working correctly.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>   tests/Makefile.include   | 2 ++
>   tests/boot-serial-test.c | 4 ++++
>   2 files changed, 6 insertions(+)
> 
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index ca82e0c..0b98dd7 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -350,11 +350,13 @@ check-qtest-sh4eb-y = tests/endianness-test$(EXESUF)
>   check-qtest-sparc-y = tests/prom-env-test$(EXESUF)
>   #check-qtest-sparc-y += tests/m48t59-test$(EXESUF)
>   #gcov-files-sparc-y = hw/timer/m48t59.c
> +check-qtest-sparc-y += tests/boot-serial-test$(EXESUF)
>   
>   check-qtest-sparc64-y = tests/endianness-test$(EXESUF)
>   #check-qtest-sparc64-y += tests/m48t59-test$(EXESUF)
>   #gcov-files-sparc64-y += hw/timer/m48t59.c
>   check-qtest-sparc64-y += tests/prom-env-test$(EXESUF)
> +check-qtest-sparc64-y += tests/boot-serial-test$(EXESUF)
>   
>   check-qtest-arm-y = tests/tmp105-test$(EXESUF)
>   check-qtest-arm-y += tests/ds1338-test$(EXESUF)
> diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c
> index 418c5b9..abc7f2d 100644
> --- a/tests/boot-serial-test.c
> +++ b/tests/boot-serial-test.c
> @@ -78,6 +78,10 @@ static testdef_t tests[] = {
>       { "i386", "q35", "-device sga", "SGABIOS" },
>       { "x86_64", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
>       { "x86_64", "q35", "-device sga", "SGABIOS" },
> +    { "sparc", "LX", "", "TMS390S10" },
> +    { "sparc", "SS-4", "", "MB86904" },
> +    { "sparc", "SS-600MP", "", "TMS390Z55" },
> +    { "sparc64", "sun4u", "", "UltraSPARC" },
>       { "s390x", "s390-ccw-virtio",
>         "-nodefaults -device sclpconsole,chardev=serial0", "virtio device" },
>       { "m68k", "mcf5208evb", "", "TT", sizeof(kernel_mcf5208), kernel_mcf5208 },
> 

Why not?

Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


ATB,

Mark.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH 2/3] tests/boot-serial: Add tests for PowerPC Mac machines
  2018-02-01 10:09 ` [Qemu-devel] [PATCH 2/3] tests/boot-serial: Add tests for PowerPC Mac machines Thomas Huth
@ 2018-02-03 10:50   ` Mark Cave-Ayland
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Cave-Ayland @ 2018-02-03 10:50 UTC (permalink / raw)
  To: Thomas Huth, qemu-devel; +Cc: Richard Henderson

On 01/02/18 10:09, Thomas Huth wrote:
> OpenBIOS prints out the CPU type on these machine types, so we can use
> this string to test whether the CPU detection is working correctly.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>   tests/boot-serial-test.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c
> index abc7f2d..12bf6ec 100644
> --- a/tests/boot-serial-test.c
> +++ b/tests/boot-serial-test.c
> @@ -69,8 +69,11 @@ static testdef_t tests[] = {
>       { "alpha", "clipper", "", "PCI:" },
>       { "ppc", "ppce500", "", "U-Boot" },
>       { "ppc", "prep", "", "Open Hack'Ware BIOS" },
> +    { "ppc", "g3beige", "", "PowerPC,750" },
> +    { "ppc", "mac99", "", "PowerPC,G4" },
>       { "ppc64", "ppce500", "", "U-Boot" },
>       { "ppc64", "prep", "", "Open Hack'Ware BIOS" },
> +    { "ppc64", "mac99", "", "PowerPC,970FX" },
>       { "ppc64", "pseries", "", "Open Firmware" },
>       { "ppc64", "powernv", "-cpu POWER8", "OPAL" },
>       { "i386", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
> 

Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


ATB,

Mark.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-02-03 10:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01 10:09 [Qemu-devel] [PATCH 0/3] Add more tests to the boot-serial tester Thomas Huth
2018-02-01 10:09 ` [Qemu-devel] [PATCH 1/3] tests/boot-serial: Enable the boot-serial test on SPARC machines, too Thomas Huth
2018-02-03 10:49   ` Mark Cave-Ayland
2018-02-01 10:09 ` [Qemu-devel] [PATCH 2/3] tests/boot-serial: Add tests for PowerPC Mac machines Thomas Huth
2018-02-03 10:50   ` Mark Cave-Ayland
2018-02-01 10:09 ` [Qemu-devel] [PATCH 3/3] tests/boot-serial: Add a test for the new hppa-softmmu target Thomas Huth

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).