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=dWoOgUgO; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id E49575A0271 for ; Fri, 19 Sep 2025 08:44:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202508; t=1758264273; bh=pL8Ocfoudq/ZHP8sdblIfRzK5QVq2qu6giaR+ErCrJI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dWoOgUgOaimX859T++e7oN6oLoXpE23Lk0fjYYUUtHl7qkh4+SlwzKv/W5aLY/hr1 8u1UqGFHbX2E1e6cDlm9azztKz1HrLLJrkKqsguOYKvgJ0c5Dj6ee7OAuJdWB17NS7 NRHQXRbAXNtyCm0QZOFS4GH3ZDn4QPrFbnYoGs0PULU85Tecg1Y6i1qviHOhTJWo44 s7Ao/IbGx5YeNPQcNHwt/3Tdag423L351KjOf4HqoTaIjd3VEH+vBSpUSoGD6rpBcv ni3+ShXNUAH31VzxCvuueTRKSY8f1Ss6SvXhDseTNwrntaV01YgwAd6xJe8WczbQxf vGBWWhXvMrsqA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4cSjfT4XL8z4w9y; Fri, 19 Sep 2025 16:44:33 +1000 (AEST) Date: Fri, 19 Sep 2025 15:00:46 +1000 From: David Gibson To: Yumei Huang Subject: Re: [PATCH] test: Update README.md Message-ID: References: <20250919014329.6007-1-yuhuang@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NAxd/6GKd4erQkxU" Content-Disposition: inline In-Reply-To: <20250919014329.6007-1-yuhuang@redhat.com> Message-ID-Hash: D5L7ZUWDTFDYE4E6Q3FKC4RAZ5C64OWT X-Message-ID-Hash: D5L7ZUWDTFDYE4E6Q3FKC4RAZ5C64OWT 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 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: --NAxd/6GKd4erQkxU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 19, 2025 at 09:43:29AM +0800, Yumei Huang wrote: > Signed-off-by: Yumei Huang Reviewed-by: David Gibson We may well want further updates, but this is a strict improvement on what we have now. > --- > test/README.md | 31 +++++++++++++++++++++++++++++-- > 1 file changed, 29 insertions(+), 2 deletions(-) >=20 > 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 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,28 @@ variable settings: DEBUG=3D1 enables debugging message= s, TRACE=3D1 enables tracing > =20 > PCAP=3D1 TRACE=3D1 ./run > =20 > +**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=3D9675= 09), > + 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. > + > + **Workaround:** Log out and log back in as the intended user to ensure= the > + correct runtime directory is set up. > + > +* SELinux may prevent the tests from running correctly. To avoid this, > + temporarily disable it by running: > + > + setenforce 0 > + > +* Some tests require a QEMU build that includes 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 --NAxd/6GKd4erQkxU Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmjM42gACgkQzQJF27ox 2GcxrRAAgJD6b2oq1DoLGzXj7Min4Vgga/MM3KfkfHURtls9XFup0NOUnQsFXBAB HQTTiFIi1bvyi6TQej7RbZf/NdSBU2WiDszZ5YS+jpiViTnO2uupmKeSeeSt4GI9 JxAHNYaS2DyykHEXY9Gy6PjX5e0QwuxrmG5uEr0wroo5biBjxbzMFzbK4imhn8nV au2J3MkeJ9WhHhdfWkH5UTzVI9KeeitkIGL+/WZ8eiJdNpGDTWnA7IxycMVngldJ yVIAHowqJNPYlPKQqwKILwy8dVnMsazuN/Rmqun7Rf0CuMqHcPqHPhCz2PwO3Duz 1Q3sWIr80PZ8vJk5OOOXrILacrT8nAw+z5tU9b/Lt1fYkD2ro6Woqhsu2hOtUUlx f5ssoIFbmIlJtu8CxfBFa+cdl4XY/KUsBYWlHUzTRwSmEWuNMjuoP8V/CydX86L7 IDV0QXBz2xzAbFv8Cz43aE7ISmTi4Tx8fzhTkviKyO/lagNWjPzuQ9D6nG06snNG 4/DV393yhTOFULsU/b0ddGJSHrtuBJb5JHzvP/W7KI6nNohMjXc0RSgD/WZMnpg9 4zAHeESSkNjQgd9M+/+m68hh5jO1F+bzuUcNNu378Sv2hrU/9Oitq9hMvnCvq9rz z4gQmfqSkz1gVNa/I0sdLBDk28rgSCCt1CvCGHShADac/pCsfik= =mxkT -----END PGP SIGNATURE----- --NAxd/6GKd4erQkxU--