Trying to get testing working

This commit is contained in:
2026-03-20 07:20:31 +01:00
parent 379451020f
commit 826c1c890a
2 changed files with 312 additions and 45 deletions

View File

@@ -2,6 +2,42 @@
---
## V26 2026-03-20 06:30:00
**Fix test runner bugs and add missing test coverage**
### Changes:
- Fixed `dpack.no_warnings` false failure in `tests/run-tests.sh`:
- Bug: `grep -c "^warning" ... || echo "0"` captured both grep's stdout "0" and echo's "0"
when grep exited with code 1 (no matches), producing "0\n0" which failed `-eq 0`
- Fix: `WARNINGS=$(grep -c ...) || WARNINGS=0` — assign on failure instead of piping
- Fixed `host.ovmf` failure: expanded OVMF search to 11 paths including `OVMF_CODE.4m.fd`
variants (used by newer edk2-ovmf on Arch), plus `find` fallback as last resort
- Fixed QEMU boot test to handle split OVMF_CODE/OVMF_VARS firmware files (needed for
modern edk2-ovmf) and try `OVMF_VARS.4m.fd` variant
- Added missing tests from `tests/proxmox/run-in-vm.sh` to `tests/run-tests.sh`:
- `host.tool.{tar,xz,python3}` — additional host tool checks
- `host.nested_virt` — VMX/SVM detection for QEMU acceleration
- `dpack.cli.{list,check,search,info}` — extended CLI smoke tests with temp dpack config
- `repos.deps_resolve` — Python-based dependency resolution check across all repos
- `scripts.init.*` — individual syntax checks for each rc.d daemon script
- `scripts.install.*` — syntax checks for installer scripts
- `scripts.iso.*` — syntax checks for ISO builder scripts
- `kernel.{CONFIG_SMP,CONFIG_AMD_IOMMU}` — additional kernel config checks
- `sign.zlib` — package signing test (non-quick mode)
- Moved build logs from `tests/` to `tests/logs/` subdirectory for cleanliness
- Improved JSON detail field escaping (quotes and newlines) for valid report output
- User updated package mirrors to Danish servers (Europe/Denmark locale)
### Plan deviation/changes:
- None
### What is missing/needs polish:
- Package signing test (`sign.zlib`) depends on dpack `sign` subcommand being implemented
- QEMU boot test still requires a built ISO to be meaningful
---
## V25 2026-03-19 13:20:00
**Initialize git repository with documentation and remotes**