aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorYumei Huang <yuhuang@redhat.com>2025-09-28 09:01:08 +0800
committerStefano Brivio <sbrivio@redhat.com>2025-09-29 20:16:43 +0200
commitc54ef9e8358db1a720c849612a32e52340d7a548 (patch)
tree38115a2b3dd669fb4696256bdb0ee256680b8ca8
parentf4729be7a56baf3b310a63a5182fbadf14c4d3a7 (diff)
downloadpasst-c54ef9e8358db1a720c849612a32e52340d7a548.tar
passt-c54ef9e8358db1a720c849612a32e52340d7a548.tar.gz
passt-c54ef9e8358db1a720c849612a32e52340d7a548.tar.bz2
passt-c54ef9e8358db1a720c849612a32e52340d7a548.tar.lz
passt-c54ef9e8358db1a720c849612a32e52340d7a548.tar.xz
passt-c54ef9e8358db1a720c849612a32e52340d7a548.tar.zst
passt-c54ef9e8358db1a720c849612a32e52340d7a548.zip
test: Update README.md
Link: https://bugs.passt.top/show_bug.cgi?id=123 Signed-off-by: Yumei Huang <yuhuang@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--test/README.md35
1 files 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