mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 15:18:19 +00:00
docs(test): describe image caller test boundaries
This commit is contained in:
@@ -37,6 +37,10 @@ if the default temporary directory is mounted with `noexec`.
|
||||
bats-core 1.4 or newer. OS detection also requires GNU awk for the legacy
|
||||
Red Hat release parser. Postscript cases require GNU diffutils.
|
||||
|
||||
`networkmanager_postscript.bats` renders complete installation postscripts in
|
||||
private namespaces. It requires Bubblewrap, bats-core 1.4 or newer, user
|
||||
namespaces and the xCAT Perl dependencies, including DBI and DBD::SQLite.
|
||||
|
||||
`go_xcat_os_release.bats` and `go_xcat_el_repo_check.bats` source the complete
|
||||
go-xcat script. OS detection uses mawk when available, otherwise the host AWK.
|
||||
The two legacy Red Hat version cases use GNU awk. CI installs both interpreters.
|
||||
|
||||
@@ -54,6 +54,26 @@ prove xCAT-test/native/buildrpms_openeuler.t \
|
||||
xCAT-test/native/openeuler_package_policy.t
|
||||
```
|
||||
|
||||
The image caller tests need `bubblewrap`, `cpio`, `gzip`, RPM tools and the
|
||||
Perl modules used by the unit suite, including DBD::SQLite, XML::Simple and
|
||||
Net::DNS:
|
||||
|
||||
```
|
||||
prove xCAT-test/native/genimage_network_drivers.t \
|
||||
xCAT-test/native/el10_image_package_policy.t
|
||||
```
|
||||
|
||||
These cases run complete callers in private filesystems with no network.
|
||||
They check driver configuration after real driver-disk loading, media-import
|
||||
records and parsed RPM installation scriptlets.
|
||||
External package downloads, service management, disk mounts and initrd creation
|
||||
use command fixtures. These cases do not boot an image or qualify hardware.
|
||||
The two Perl image caller tests fail if run as root.
|
||||
|
||||
The default BATS suite also runs `networkmanager_postscript.bats`. It renders
|
||||
installation postscripts and checks their network configuration in isolation.
|
||||
See `xCAT-test/bats/README.md` for its prerequisites.
|
||||
|
||||
Run the isolated system cases as root:
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user