mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 15:18:19 +00:00
docs(test): describe native package checks
This commit is contained in:
@@ -32,7 +32,7 @@ Missing prerequisites fail these tests without stopping unrelated test files.
|
||||
Non-Linux hosts report a skip. Set `TMPDIR` to a writable, executable filesystem
|
||||
if the default temporary directory is mounted with `noexec`.
|
||||
|
||||
`go_xcat_os_release.bats` and the full-script cases in
|
||||
`go_xcat_os_release.bats`, `go_xcat_activation.bats` and the full-script cases in
|
||||
`postscripts_apt_get.bats` use the same namespace isolation. They require
|
||||
bats-core 1.4 or newer. OS detection also requires GNU awk for the legacy
|
||||
Red Hat release parser. Postscript cases require GNU diffutils.
|
||||
|
||||
@@ -44,6 +44,23 @@ packages, execute target-architecture binaries or prove that the generated image
|
||||
|
||||
## Other native tests
|
||||
|
||||
The pull-request workflow runs these packaging cases explicitly as an ordinary
|
||||
user:
|
||||
|
||||
```
|
||||
prove xCAT-test/native/probe_package_payload.t \
|
||||
xCAT-test/native/release_repository.t \
|
||||
xCAT-test/native/package_relations.t
|
||||
```
|
||||
|
||||
They need RPM build/query tools, cpio, createrepo_c, zstd, rsync, GnuPG, Python 3
|
||||
with RPM bindings, user/mount namespaces, and the Perl modules Capture::Tiny,
|
||||
File::Slurper, Parallel::ForkManager and XML::LibXML. The probe command also
|
||||
needs `which`. The release test uses an ephemeral signing key and removes its
|
||||
agent. These checks inspect real packages and repository output; they do not
|
||||
qualify package installation on every target architecture. On EL8, install both
|
||||
`python36` and `python3-rpm` to provide the interpreter and its RPM bindings.
|
||||
|
||||
Run the package and unprivileged namespace cases as an ordinary user:
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user