2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-20 22:55:40 +00:00

docs(genesis): describe journal test prerequisites

This commit is contained in:
Vinícius Ferrão
2026-10-16 21:04:44 -03:00
parent 90237b951e
commit 0dfc1014da
+12 -4
View File
@@ -269,10 +269,18 @@ console with Meson, then runs the installed program. It requires a C compiler,
Meson, Ninja, pkg-config, and development packages for Newt and systemd.
`python3 xCAT-test/native/genesis_console_dialogs.py` needs the same build
dependencies plus the `pyte` Python package. It runs the linked console in a
pseudo-terminal and checks help and diagnostics navigation, scrolling and
return to the main screen. It checks termination from the main screen, not
from inside a dialog.
dependencies plus the `pyte` Python package, bubblewrap,
systemd-journal-remote and journalctl. It runs the linked console in a
pseudo-terminal and checks help and diagnostics navigation, scrolling,
return to the main screen, and F3 journal filtering, order and history limits.
It checks termination from the main screen, not from inside a dialog.
The journal cases need working Linux user and mount namespaces. On Ubuntu
24.04, the CI job enables them with
`sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0`.
They import private journal files and verify their contents with journalctl
before opening F3. They do not start a journal service or read the host
journal. Missing tools or namespace support fail the tests; they do not skip.
The Genesis runtime BATS cases need Bash, Perl, OpenSSL, coreutils, diffutils
and bubblewrap. The credential-file cases use a private `/etc` in a Linux