From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202508 header.b=Q9eI3B3a; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 6F0E15A0272 for ; Mon, 29 Sep 2025 06:08:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202508; t=1759118915; bh=p3+t+bSoaOOqfpkB+iJU9kBtp7xcjIAgdfZgdrlEWtk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q9eI3B3aHp/2Ssqcehk3svUBYM7aWbtOjg0v6ImjVysL93FfS2RTLjs1+iL3BciWJ bxaMMw1nkPqq4hxBlsWM9H8uGjcdlfvkAq7UXxzta1t7170zMguJ8aO7DuXjMC31QI AR0pz3Ir3E4eRRBP5osiD1VWrEUHNYl38sqzV5VO3F6moLamv7VuTskXQog4vcdcNw dCY6q7PPpw8smHyX9M5r5z5VppEi67oSgifve/R6GASzzCAZ8uY0V7L/Ftt4/CnVJ+ sYOZvn4WbdbPuabshFmuZQl0r/SDvGxhFdwYlnJQd4nlyQLZfld62HUbnVmaSRrUyP g1oN5VJ5yrYTw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4cZnjv1gcdz4wCP; Mon, 29 Sep 2025 14:08:35 +1000 (AEST) Date: Mon, 29 Sep 2025 13:49:03 +1000 From: David Gibson To: Yumei Huang Subject: Re: [PATCH v2] test: Update README.md Message-ID: References: <20250928010108.5912-1-yuhuang@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wHsJMXvZLvmM3oWl" Content-Disposition: inline In-Reply-To: <20250928010108.5912-1-yuhuang@redhat.com> Message-ID-Hash: CCLKXAV6HT4PXPKWXXOIZCDPSJPKW5WN X-Message-ID-Hash: CCLKXAV6HT4PXPKWXXOIZCDPSJPKW5WN X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top, sbrivio@redhat.com, rjones@redhat.com, berrange@redhat.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --wHsJMXvZLvmM3oWl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 28, 2025 at 09:01:08AM +0800, Yumei Huang wrote: > Signed-off-by: Yumei Huang 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 > --- > test/README.md | 35 +++++++++++++++++++++++++++++++++-- > 1 file changed, 33 insertions(+), 2 deletions(-) >=20 > 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 dist= ributions: > git go iperf3 isc-dhcp-common jq libgpgme-dev libseccomp-dev linux-c= pupower > 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 > =20 > NOTE: the tests need a qemu version >=3D 7.2, or one that contains commit > 13c6be96618c ("net: stream: add unix socket"): this change introduces su= pport > @@ -81,7 +81,12 @@ The following additional packages are commonly needed: > =20 > ## Regular test > =20 > -Just issue: > +Before running the tests, you need to prepare the required assets: > + > + cd test > + make assets > + > +Then issue: > =20 > ./run > =20 > @@ -91,6 +96,32 @@ variable settings: DEBUG=3D1 enables debugging message= s, TRACE=3D1 enables tracing > =20 > PCAP=3D1 TRACE=3D1 ./run > =20 > +**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=3D967509). > + 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 director= y 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=3D= $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 >=3D 10.0.0, or a build that include= s the > + following commits: > + > + 60f543ad917f ("virtio-net: vhost-user: Implement internal migrat= ion") > + 3f65357313e0 ("vhost: Add stubs for the migration state transfer > + interface") > + > ## Running selected tests > =20 > Rudimentary support to run a list of selected tests, without support for > --=20 > 2.47.0 >=20 --=20 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 --wHsJMXvZLvmM3oWl Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmjaAZ4ACgkQzQJF27ox 2GfJCQ//bbTBRWLwwPIdRT8ui0oH04BY5+zaJnxfhHs8z53BwHlu+21BimGa31kn dJQqiNdkkgxwrr43rp6m2C3CMKtqYfdc4nGng4nSnnUFm/cfqozEDMQuZTwnvYFI benCEMUJHZy/LoZufj3hCYfAt/eCHaxU0JSVg2RzYjsCT/qYxq1qz1izerdVYMfC 4Ir2S51SjgQpVKxk5ux4ITgQu7CIniWeZ0HlGT1TJeDCjiy5S1bzvo1e6ci5SWlB nEPPaGijhdSFbnzuVjdUX2ASU+2M3vACD7VyRhJanpMr5H50nu7Zt28d6pVa+FWM xoK1PW4URYzYzx0JzKhYfe0KfPXUCLLk/9V/bpIdYWNjRUIFATBubDK1jPNsABmR Q/tiq1+aEeZG/JNsiQyA8047IWGkeV1K2cUwc3qOMXKwnAZl+PlUeiGbD4S0PAwW 0ViDywlhRoMrR5pLjKVYV51xP/JLWBT7sFdWePpoQgNQK9S2BYvf7y4hAPtLL9II AqxYmXy1qLfxLOF2Gdm2HB8WzGzlpYouhUOBuUqd8TdNjG3P6zbDB6V1yzaoji1D +/PXgydUmraiNbZRUbkHbfWQNSzY5AufM0qwbBeIGmzlstT9hooe9hQHFRzlgjJF D+UBr179oxaOq7JFIexPDOWlr6GdkOddn78cpJ7V1zvW3WLRdcs= =MbM3 -----END PGP SIGNATURE----- --wHsJMXvZLvmM3oWl--