Create comprehensive system testing infrastructure for runtime verification of the KNEL-Football ISO. test-iso.sh (VM test framework): - VM creation via virt-install with UEFI support - Prerequisite checking (libvirt group, virsh, ISO) - Boot test automation with timeout handling - Secure Boot and FDE test commands - Console access via virsh console - Color-coded logging for clarity tests/system/boot_test.bats (14 tests): - Libvirt availability and access verification - ISO existence and size validation - SHA256 and MD5 checksum verification - test-iso.sh framework validation tests/system/secureboot_test.bats (10 tests): - Secure Boot package verification in package list - UEFI/GPT partitioning configuration tests - LUKS2 encryption configuration validation tests/system/fde_test.bats (23 tests): - Encryption setup script existence tests - LUKS2 configuration validation - AES-256-XTS cipher verification - 512-bit key length verification - Initramfs and crypttab configuration - Helper scripts creation validation - Password policy enforcement tests - Runtime FDE test placeholders (skip if no VM) Test execution: - All tests pass with appropriate skips when prerequisites (libvirt group, ISO) are not met - Zero failures in static analysis portion Total: 47 new system tests 💘 Generated with Crush Assisted-by: GLM-5 via Crush <crush@charm.land>
2.6 KiB
2.6 KiB