2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-10 19:46:24 +00:00
Commit Graph

28041 Commits

Author SHA1 Message Date
Daniel Hilst 58c030a8f3 test(xcat-core): Move BATS tests beside unit tests
Shell unit tests were introduced under xCAT-test/autotest/bats, but the existing source-tree unit suite already lives directly under xCAT-test/unit. Keeping the BATS suite under xCAT-test/bats makes the unit-test layout consistent and keeps autotest reserved for xcattest-driven functional cases.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-08 13:03:34 -03:00
Daniel Hilst 3e302e7f19 test(xcat-core): Introduce BATS & convert shell scripting tests to it
The go-xcat shell behavior tests were written as Perl harnesses, which made the shell assertions harder to read and kept shell-specific setup outside a native shell test framework.

Add BATS to the GitHub Actions dependency set, run BATS tests from the same preserved source tree as the Perl unit suite, and move the go-xcat repository checks into xCAT-test/autotest/bats.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-08 12:57:16 -03:00
Daniel Hilst 796103c300 Merge pull request #7822 from VersatusHPC/fix/go-xcat-el10-repos
fix(go-xcat): check the EPEL and CRB repositories on EL10 as well
2026-09-08 12:02:19 -03:00
Daniel Hilst 8a77a645af Merge pull request #7816 from VersatusHPC/fix/sudoer-postscript-password
fix(sudoer): take the password from the passwd table
2026-09-08 10:29:50 -03:00
Vinícius Ferrão 394be3d5b2 test(xCAT-test): cover the EPEL and CRB check on EL9 and EL10
The check functions and the installer functions that call them are taken
from the shipped script and run against a dnf stand-in that records its
probes. 27 of 40 assertions fail against the previous
script: EL10 and CentOS Stream were not checked, the probe went through dnf
list, a failed query read as a missing repository, and the CRB message
carried a repository file with signature checks disabled.
2026-09-07 13:40:22 -03:00
Vinícius Ferrão 01d8de2bc2 fix(go-xcat): check the EPEL and CRB repositories on EL10 as well
The check ran on EL9 only, and only when the version carried a minor number,
so CentOS Stream was never checked. On EL10 a management node without EPEL
or CRB failed inside dnf install with a dependency error instead of the
message that names the missing repository. The CRB message proposed a CentOS
Stream repository file with signature checks disabled, on every
distribution. The probe used dnf list, which an installed copy of the probe
package satisfies with the repository disabled, and which reports a failed
query as a missing repository.

Check EL9 and EL10, with or without a minor version. Probe the enabled
repositories with repoquery for the host architecture and noarch, so a
source repository does not stand in for the binary one, and stop with the
package manager's own error when the query fails. Name the EPEL release
package of the running major version. For CRB, name crb enable from a
current epel-release, which handles Red Hat Enterprise Linux under both
subscription management and RHUI, Rocky Linux, AlmaLinux and CentOS Stream,
and the dnf config-manager command for Oracle Linux.
2026-09-07 13:40:19 -03:00
Daniel Hilst 83c3234284 Merge pull request #7819 from VersatusHPC/feat/genesis-s390x
feat(genesis): add s390x OpenEmbedded support
2026-09-06 15:19:56 -03:00
Vinícius Ferrão 0302670320 test(genesis): update integration test count 2026-09-06 11:09:27 -03:00
Vinícius Ferrão 76e8d7069d fix(genesis): retain s390x glibc library path
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-06 04:08:59 -03:00
Vinícius Ferrão 1d6c373a86 docs(genesis): clarify virtual s390x discovery 2026-09-06 04:03:35 -03:00
Vinícius Ferrão 3ad1ef888a test(genesis): cover absent s390x guest UUID 2026-09-06 04:02:40 -03:00
Vinícius Ferrão ddba7567fc fix(genesis): remove unused s390x tune value 2026-09-06 04:02:24 -03:00
Vinícius Ferrão 560de199a9 fix(genesis): align shellcheck trap annotation 2026-09-06 03:46:17 -03:00
Vinícius Ferrão 17ca2c9c79 docs(genesis): clarify s390x discovery 2026-09-06 03:36:22 -03:00
Vinícius Ferrão d2e20fb08c test(genesis): distinguish s390x guest identity 2026-09-06 03:35:19 -03:00
Vinícius Ferrão 6c3293afc5 fix(genesis): isolate s390x guest identity 2026-09-06 03:34:19 -03:00
Vinícius Ferrão 18b36f02ba test(genesis): cover repository KAS paths 2026-09-06 03:33:24 -03:00
Vinícius Ferrão 2404f71785 fix(genesis): restore repository KAS paths 2026-09-06 03:32:20 -03:00
Vinícius Ferrão 947ac1c565 test(genesis): cover local KAS paths 2026-09-06 02:11:20 -03:00
Vinícius Ferrão 86988d5edc fix(genesis): resolve KAS paths locally 2026-09-06 02:11:20 -03:00
Vinícius Ferrão 5edadd2247 docs(genesis): document architecture query 2026-09-06 02:03:17 -03:00
Vinícius Ferrão 20234cdacf docs(genesis): clarify physical qeth limits 2026-09-06 02:03:16 -03:00
Vinícius Ferrão 9a69060448 test(genesis): cover empty s390x guest UUID 2026-09-06 02:03:11 -03:00
Vinícius Ferrão 959b0d2d3c fix(genesis): preserve s390x LPAR identity 2026-09-06 02:03:08 -03:00
Vinícius Ferrão 974d1250c4 test(genesis): cover qeth safeguards 2026-09-06 02:03:03 -03:00
Vinícius Ferrão e53d351d17 fix(genesis): harden qeth activation 2026-09-06 02:02:58 -03:00
Vinícius Ferrão 9f9f535c6a test(genesis): load boot policy from source 2026-09-06 01:35:28 -03:00
Vinícius Ferrão 173b66f1e1 fix(genesis): initialize qeth state arrays 2026-09-06 00:54:58 -03:00
Vinícius Ferrão 3b69095b73 fix(genesis): use correct s390-tools paths 2026-09-06 00:35:37 -03:00
Vinícius Ferrão d62cf52290 docs(genesis): describe s390x qeth setup 2026-09-06 00:26:57 -03:00
Vinícius Ferrão e1b6797249 test(genesis): cover s390x qeth activation 2026-09-06 00:26:17 -03:00
Vinícius Ferrão 0823c36864 feat(genesis): activate s390x qeth devices 2026-09-06 00:25:56 -03:00
Vinícius Ferrão 1ad58570e8 feat(genesis): add s390x network tooling 2026-09-06 00:21:01 -03:00
Vinícius Ferrão 17d2965f18 chore(genesis): align patch author identity 2026-09-04 18:22:16 -03:00
Vinícius Ferrão c31d270e30 docs(genesis): fix DHCP option wording 2026-09-04 18:22:16 -03:00
Vinícius Ferrão 34abff1ae9 docs(genesis): state s390x validation limits 2026-09-04 18:03:05 -03:00
Vinícius Ferrão 4ad9db20a4 refactor(genesis): follow mknb perl style 2026-09-04 18:03:05 -03:00
Vinícius Ferrão 0ad83ce257 test(genesis): cover s390x config failures 2026-09-04 17:41:08 -03:00
Vinícius Ferrão 288ca8b78a fix(genesis): install s390x configs safely 2026-09-04 17:41:08 -03:00
Vinícius Ferrão ecbafb4a2e docs(genesis): explain s390x config lookup 2026-09-04 17:15:24 -03:00
Vinícius Ferrão 9e65f9c45d test(genesis): cover s390x integration boundaries 2026-09-04 17:15:24 -03:00
Vinícius Ferrão bfd4442cc2 refactor(genesis): use the extension arch default 2026-09-04 17:15:23 -03:00
Vinícius Ferrão 22646de0a8 fix(genesis): match architectures literally 2026-09-04 17:15:23 -03:00
Vinícius Ferrão a8c6bd2a4a fix(genesis): harden s390x configurations 2026-09-04 17:15:23 -03:00
Vinícius Ferrão ccac4f57eb test(genesis): cover architecture reporting 2026-09-04 16:54:13 -03:00
Vinícius Ferrão 0cbeb3bb56 feat(genesis): report build architectures 2026-09-04 16:54:13 -03:00
Vinícius Ferrão 6aba71b44c test(genesis): cover s390x config name 2026-09-04 16:37:39 -03:00
Vinícius Ferrão 8217422a70 fix(genesis): use s390x config name 2026-09-04 16:37:38 -03:00
Vinícius Ferrão b7f9864528 docs(genesis): clarify s390x support 2026-09-04 16:20:38 -03:00
Vinícius Ferrão 7183fd8414 test(genesis): cover s390x boot behavior 2026-09-04 16:20:38 -03:00