[Qemu-devel] [PATCH v3 0/6] Avocado: more multi-arch tests

Philippe Mathieu-Daudé posted 6 patches 7 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20181013151545.3731-1-f4bug@amsat.org
Test docker-clang@ubuntu passed
Test checkpatch failed
Test asan passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
scripts/qemu.py                        |   6 +-
tests/acceptance/boot_linux_console.py | 206 ++++++++++++++++++++++++-
2 files changed, 208 insertions(+), 4 deletions(-)
[Qemu-devel] [PATCH v3 0/6] Avocado: more multi-arch tests
Posted by Philippe Mathieu-Daudé 7 years ago
Hi,

Another neanderthal approach to add multi-arch acceptance tests using Avocado.

I couldn't figure how to use the R2D serial, the kernel boots using the sm501
display correctly, but I'm too console-oriented to write UI tests...

Magnus or Zoltan, any hint on this?

Thanks

Phil.

Since v2 (http://lists.gnu.org/archive/html/qemu-devel/2018-06/msg06370.html):
- use Debian packaged kernels, add link to the sources and a comment
  about how to rebuild these images (Alex)
- use self.arch from Cleber's series
- add mips64el kernel console test
- add sh4 test using the tracing framework

Since v1 (http://lists.gnu.org/archive/html/qemu-devel/2018-04/msg03076.html):
- we can now run other archs (Cleber)

Based-on: 20181009232607.15521-1-crosa@redhat.com
"Acceptance Tests: basic architecture support" from Cleber Rosa
https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg01821.html

Philippe Mathieu-Daudé (6):
  tests/acceptance: Rename the generic BootLinuxConsole test as
    test_x86_64_pc
  tests/acceptance: Add a kludge to not use the default console
  tests/acceptance: Add test_mips_4kc_malta in BootLinuxConsole
  tests/acceptance: Add test_mipsel_5kc_malta in BootLinuxConsole
  tests/acceptance: Add test_sh4_r2d in BootLinuxConsole
  tests/acceptance: Add test_sh4_r2d in BootLinuxTracing

 scripts/qemu.py                        |   6 +-
 tests/acceptance/boot_linux_console.py | 206 ++++++++++++++++++++++++-
 2 files changed, 208 insertions(+), 4 deletions(-)

-- 
2.19.1


Re: [Qemu-devel] [PATCH v3 0/6] Avocado: more multi-arch tests
Posted by Thomas Huth 7 years ago
On 2018-10-13 17:15, Philippe Mathieu-Daudé wrote:
> Hi,
> 
> Another neanderthal approach to add multi-arch acceptance tests using Avocado.
> 
> I couldn't figure how to use the R2D serial, the kernel boots using the sm501
> display correctly, but I'm too console-oriented to write UI tests...
> 
> Magnus or Zoltan, any hint on this?

IIRC you have to use the second UART, see:

https://wiki.qemu.org/Documentation/Platforms/SH4

 Thomas

Re: [Qemu-devel] [PATCH v3 0/6] Avocado: more multi-arch tests
Posted by Philippe Mathieu-Daudé 7 years ago
Ping for review before I send v3?

v3:
- fix patch 4 "Add test_sh4_r2d in BootLinuxConsole"
- drop patch 5? "Add test_sh4_r2d in BootLinuxTracing"

On Sat, Oct 13, 2018 at 5:15 PM Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
> Another neanderthal approach to add multi-arch acceptance tests using Avocado.
>
> I couldn't figure how to use the R2D serial, the kernel boots using the sm501
> display correctly, but I'm too console-oriented to write UI tests...
>
> Magnus or Zoltan, any hint on this?

Fixed (see reply to patch #5)

>
> Thanks
>
> Phil.
>
> Since v2 (http://lists.gnu.org/archive/html/qemu-devel/2018-06/msg06370.html):
> - use Debian packaged kernels, add link to the sources and a comment
>   about how to rebuild these images (Alex)
> - use self.arch from Cleber's series
> - add mips64el kernel console test
> - add sh4 test using the tracing framework
>
> Since v1 (http://lists.gnu.org/archive/html/qemu-devel/2018-04/msg03076.html):
> - we can now run other archs (Cleber)
>
> Based-on: 20181009232607.15521-1-crosa@redhat.com
> "Acceptance Tests: basic architecture support" from Cleber Rosa
> https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg01821.html
>
> Philippe Mathieu-Daudé (6):
>   tests/acceptance: Rename the generic BootLinuxConsole test as
>     test_x86_64_pc
>   tests/acceptance: Add a kludge to not use the default console
>   tests/acceptance: Add test_mips_4kc_malta in BootLinuxConsole
>   tests/acceptance: Add test_mipsel_5kc_malta in BootLinuxConsole
>   tests/acceptance: Add test_sh4_r2d in BootLinuxConsole
>   tests/acceptance: Add test_sh4_r2d in BootLinuxTracing

Thanks,

Phil.