* [PATCH v2] test: Update README.md
@ 2025-09-28 1:01 Yumei Huang
2025-09-29 3:49 ` David Gibson
2025-09-29 22:23 ` Stefano Brivio
0 siblings, 2 replies; 3+ messages in thread
From: Yumei Huang @ 2025-09-28 1:01 UTC (permalink / raw)
To: passt-dev, sbrivio; +Cc: david, yuhuang, rjones, berrange
Signed-off-by: Yumei Huang <yuhuang@redhat.com>
---
test/README.md | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/test/README.md b/test/README.md
index 91ca603..0df7533 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,32 @@ variable settings: DEBUG=1 enables debugging messages, TRACE=1 enables tracing
PCAP=1 TRACE=1 ./run
+**Note:**
+
+* Don't run the tests as root, the whole point of passt is not to run as root.
+
+* If you switch users before running the tests, you may hit "Permission denied"
+ error. It's probably 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, and `XDG_RUNTIME_DIR` points to the /run/user directory of
+ the previous user rather than the target user.
+
+ **Workaround:** Log out and log back in as the intended user to ensure the
+ correct runtime directory is set up. Or use `machinectl shell --uid=$user`.
+
+* SELinux may prevent the tests from running correctly. To avoid this,
+ temporarily disable it by running:
+
+ setenforce 0
+
+* Some tests require a QEMU version >= 10.0.0, or a build that includes the
+ following commits:
+
+ 60f543ad917f ("virtio-net: vhost-user: Implement internal migration")
+ 3f65357313e0 ("vhost: Add stubs for the migration state transfer
+ interface")
+
## Running selected tests
Rudimentary support to run a list of selected tests, without support for
--
2.47.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] test: Update README.md
2025-09-28 1:01 [PATCH v2] test: Update README.md Yumei Huang
@ 2025-09-29 3:49 ` David Gibson
2025-09-29 22:23 ` Stefano Brivio
1 sibling, 0 replies; 3+ messages in thread
From: David Gibson @ 2025-09-29 3:49 UTC (permalink / raw)
To: Yumei Huang; +Cc: passt-dev, sbrivio, rjones, berrange
[-- Attachment #1: Type: text/plain, Size: 3036 bytes --]
On Sun, Sep 28, 2025 at 09:01:08AM +0800, Yumei Huang wrote:
> Signed-off-by: Yumei Huang <yuhuang@redhat.com>
Nice. Several things clearer than v1. Probably more that could be
revised, but this looks like a good improvement on its own.
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> test/README.md | 35 +++++++++++++++++++++++++++++++++--
> 1 file changed, 33 insertions(+), 2 deletions(-)
>
> diff --git a/test/README.md b/test/README.md
> index 91ca603..0df7533 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,32 @@ variable settings: DEBUG=1 enables debugging messages, TRACE=1 enables tracing
>
> PCAP=1 TRACE=1 ./run
>
> +**Note:**
> +
> +* Don't run the tests as root, the whole point of passt is not to run as root.
> +
> +* If you switch users before running the tests, you may hit "Permission denied"
> + error. It's probably 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, and `XDG_RUNTIME_DIR` points to the /run/user directory of
> + the previous user rather than the target user.
> +
> + **Workaround:** Log out and log back in as the intended user to ensure the
> + correct runtime directory is set up. Or use `machinectl shell --uid=$user`.
> +
> +* SELinux may prevent the tests from running correctly. To avoid this,
> + temporarily disable it by running:
> +
> + setenforce 0
> +
> +* Some tests require a QEMU version >= 10.0.0, or a build that includes the
> + following commits:
> +
> + 60f543ad917f ("virtio-net: vhost-user: Implement internal migration")
> + 3f65357313e0 ("vhost: Add stubs for the migration state transfer
> + interface")
> +
> ## Running selected tests
>
> Rudimentary support to run a list of selected tests, without support for
> --
> 2.47.0
>
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] test: Update README.md
2025-09-28 1:01 [PATCH v2] test: Update README.md Yumei Huang
2025-09-29 3:49 ` David Gibson
@ 2025-09-29 22:23 ` Stefano Brivio
1 sibling, 0 replies; 3+ messages in thread
From: Stefano Brivio @ 2025-09-29 22:23 UTC (permalink / raw)
To: Yumei Huang; +Cc: passt-dev, david, rjones, berrange
On Sun, 28 Sep 2025 09:01:08 +0800
Yumei Huang <yuhuang@redhat.com> wrote:
> Signed-off-by: Yumei Huang <yuhuang@redhat.com>
Applied, with this extra tag:
Link: https://bugs.passt.top/show_bug.cgi?id=123
...please close that ticket if you think it's solved now (I think it
is, but I might be missing something).
--
Stefano
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-29 22:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-28 1:01 [PATCH v2] test: Update README.md Yumei Huang
2025-09-29 3:49 ` David Gibson
2025-09-29 22:23 ` Stefano Brivio
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).