From: Stefano Brivio <sbrivio@redhat.com>
To: Yumei Huang <yuhuang@redhat.com>
Cc: passt-dev@passt.top, david@gibson.dropbear.id.au
Subject: Re: [PATCH] test: Update README.md
Date: Fri, 19 Sep 2025 11:58:22 +0200 [thread overview]
Message-ID: <20250919115822.4e3aab21@elisabeth> (raw)
In-Reply-To: <20250919014329.6007-1-yuhuang@redhat.com>
On Fri, 19 Sep 2025 09:43:29 +0800
Yumei Huang <yuhuang@redhat.com> wrote:
> Signed-off-by: Yumei Huang <yuhuang@redhat.com>
> ---
> test/README.md | 31 +++++++++++++++++++++++++++++--
> 1 file changed, 29 insertions(+), 2 deletions(-)
>
> diff --git a/test/README.md b/test/README.md
> index 91ca603..e3e9d37 100644
> --- a/test/README.md
> +++ b/test/README.md
> @@ -32,7 +32,7 @@ Example for Debian, and possibly most Debian-based distributions:
> git go iperf3 isc-dhcp-common jq libgpgme-dev libseccomp-dev linux-cpupower
> lm-sensors lz4 netavark netcat-openbsd psmisc qemu-efi-aarch64
> qemu-system-arm qemu-system-misc qemu-system-ppc qemu-system-x86
> - qemu-system-x86 sipcalc socat strace tmux uidmap valgrind
> + sipcalc socat strace tmux uidmap valgrind
>
> NOTE: the tests need a qemu version >= 7.2, or one that contains commit
> 13c6be96618c ("net: stream: add unix socket"): this change introduces support
> @@ -81,7 +81,12 @@ The following additional packages are commonly needed:
>
> ## Regular test
>
> -Just issue:
> +Before running the tests, you need to prepare the required assets:
> +
> + cd test
> + make assets
> +
> +Then issue:
>
> ./run
>
> @@ -91,6 +96,28 @@ variable settings: DEBUG=1 enables debugging messages, TRACE=1 enables tracing
>
> PCAP=1 TRACE=1 ./run
>
> +**Note:**
> +
> +* It's recommended to run the commands as a non-root user.
> + Due to [Bug 967509](https://bugzilla.redhat.com/show_bug.cgi?id=967509),
> + if you switch users with `su` or `sudo`, the directory `/run/user/ID` may
> + not be created. In that case, `XDG_RUNTIME_DIR` will incorrectly point to
> + `/run/user/0` instead of `/run/user/ID`, which can cause error.
Thanks for the research, I wasn't aware of that, and recently spent
quite some time figuring that out (for other reasons):
https://issues.redhat.com/browse/RHEL-70222
in that case, XDG_RUNTIME_DIR was simply not set. Things were working
with 'machinectl shell' instead.
At the same time: running this whole stuff as root sounds rather crazy,
unless it's a throw-away VMs with absolutely nothing important on it.
That is, regardless of the issue with XDG_RUNTIME_DIR. I would maybe
make the wording stronger, something like:
* Don't run the tests as root, it's not needed!
* If you really need to, note that ...
> + **Workaround:** Log out and log back in as the intended user to ensure the
> + correct runtime directory is set up.
We could also suggest 'machinectl shell' if it's really needed for
whatever reason.
> +* SELinux may prevent the tests from running correctly. To avoid this,
> + temporarily disable it by running:
> +
> + setenforce 0
By the way, other than the DHCP client not working on Fedora in a
namespace (which we should really fix, I can look into it if you share
the messages you're getting from /var/log/audit/audit.log), did you hit
any other issue with it?
I haven't tried running tests on Fedora for a long time now.
> +* Some tests require a QEMU build that includes the following commits:
> +
> + 60f543ad917f ("virtio-net: vhost-user: Implement internal migration")
> + 3f65357313e0 ("vhost: Add stubs for the migration state transfer
> + interface")
Given:
$ git describe --contain 60f543ad917f 3f65357313e0
v10.0.0-rc0~89^2~1
v10.0.0-rc0~89^2~2
we might also save the reader from checking out a QEMU tree to check
and say something like "Some tests require a QEMU version >= 10.0.0, or
a build that includes ..."
> +
> ## Running selected tests
>
> Rudimentary support to run a list of selected tests, without support for
The rest looks good to me and it's an improvement on the original
anyway so I'm fine applying as it is, as well, but those few
suggestions shouldn't take that long either.
--
Stefano
next prev parent reply other threads:[~2025-09-19 9:58 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 1:43 Yumei Huang
2025-09-19 5:00 ` David Gibson
2025-09-19 9:58 ` Stefano Brivio [this message]
2025-09-22 3:03 ` Yumei Huang
2025-09-22 20:03 ` Stefano Brivio
2025-09-23 6:36 ` Yumei Huang
2025-09-23 7:16 ` Yumei Huang
2025-09-23 10:32 ` Stefano Brivio
2025-09-24 1:58 ` David Gibson
2025-09-24 1:58 ` Yumei Huang
2025-09-24 3:44 ` David Gibson
2025-09-24 4:02 ` Yumei Huang
2025-09-24 8:46 ` Stefano Brivio
2025-09-24 8:56 ` Richard W.M. Jones
2025-09-24 9:09 ` Stefano Brivio
2025-09-24 10:31 ` Richard W.M. Jones
2025-09-24 11:00 ` Daniel P. Berrangé
2025-09-25 9:21 ` Richard W.M. Jones
2025-09-24 11:05 ` Stefano Brivio
2025-09-24 11:20 ` Daniel P. Berrangé
2025-09-24 11:48 ` Stefano Brivio
2025-09-25 5:16 ` Yumei Huang
2025-09-23 7:49 ` David Gibson
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=20250919115822.4e3aab21@elisabeth \
--to=sbrivio@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=yuhuang@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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
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 IMAP folder(s).