From: Cornelia Huck <cohuck@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>,
qemu-devel@nongnu.org,
Wainer dos Santos Moschetta <wainersm@redhat.com>,
qemu-s390x@nongnu.org, Cleber Rosa <crosa@redhat.com>,
Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH RFC] tests/acceptance: add a test for devices on s390x
Date: Thu, 26 Nov 2020 12:32:33 +0100 [thread overview]
Message-ID: <20201126123233.6dec3039.cohuck@redhat.com> (raw)
In-Reply-To: <79a12074-e63d-6362-5359-612069d10d26@redhat.com>
On Wed, 25 Nov 2020 17:04:05 +0100
Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
> Hi Cornelia,
>
> On 11/25/20 4:03 PM, Thomas Huth wrote:
> > On 25/11/2020 14.58, Cornelia Huck wrote:
> >> This adds a very basic test for checking that we present devices
> >> in a way that Linux can consume: boot with both virtio-net-ccw and
> >> virtio-net-pci attached and then verify that Linux is able to see
> >> and detect these devices.
> >
> > Thanks for tackling it!
> >
> >> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
> >> ---
> >>
> >> A very basic test, but it would have caught the recent zPCI regression.
>
> Thanks for adding this test :)
>
> >>
> >> If anyone has a better idea than using early debug shells in the Debian
> >> install image, please let me know. At least it's quick, as we can check
> >> for the devices quite early in the boot sequence.
>
> This is the simplest cheaper way I think.
>
> Alternative is to use Guenter's images:
> https://github.com/groeck/linux-build-test/tree/master/rootfs/s390
I tried to use these, but it seems I would need a kernel with the
relevant drivers built-in for that, and neither Fedora nor Debian seem
to do that. Maybe I'm holding it wrong, but I think I'll just stick to
my current approach, as I have that one working :)
>
> >>
> >> Not sure if running under both kvm and tcg on an s390 host would add
> >> useful extra coverage. Also not sure if this needs fencing on any of the
> >> public CIs (have not tried yet).
> >
> > We're only running the acceptance tests in the gitlab-CI, no worries about
> > the others.
> >
> >> ---
> >> tests/acceptance/s390_devices.py | 68 ++++++++++++++++++++++++++++++++
> >> 1 file changed, 68 insertions(+)
> >> create mode 100644 tests/acceptance/s390_devices.py
> >>
> >> diff --git a/tests/acceptance/s390_devices.py b/tests/acceptance/s390_devices.py
> >> new file mode 100644
> >> index 000000000000..6ce47061f35d
> >> --- /dev/null
> >> +++ b/tests/acceptance/s390_devices.py
> >
> > s390x_devices.py ?
> >
> > Or maybe even machine_s390x.py instead, like the other machine*.py files?
>
> Feel free to use whatever name/directory structure that help others to
> find your tests (don't forget to add an entry to MAINTAINERS).
Good point, I forgot about an explicit MAINTAINERS entry.
>
> Regards,
>
> Phil.
>
prev parent reply other threads:[~2020-11-26 11:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 13:58 [PATCH RFC] tests/acceptance: add a test for devices on s390x Cornelia Huck
2020-11-25 15:03 ` Thomas Huth
2020-11-25 15:30 ` Cornelia Huck
2020-11-26 12:05 ` Cornelia Huck
2020-11-26 12:18 ` Thomas Huth
2020-11-26 12:44 ` Cornelia Huck
2020-11-25 16:04 ` Philippe Mathieu-Daudé
2020-11-26 11:32 ` Cornelia Huck [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=20201126123233.6dec3039.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=crosa@redhat.com \
--cc=linux@roeck-us.net \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=thuth@redhat.com \
--cc=wainersm@redhat.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).