From 20ef06a02042eddd7efb468521f963a1bcdbb16d Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Tue, 17 Feb 2026 10:12:35 -0500 Subject: [PATCH] feat: add test:system command to run.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend the test runner to support system-level tests for VM boot verification and runtime testing. Changes: - Add test:system command for system tests only - Update main test command to include system tests - System tests cover boot, Secure Boot, and FDE New command: ./run.sh test:system This allows running system tests independently when prerequisites (libvirt, ISO) are available. 💘 Generated with Crush Assisted-by: GLM-5 via Crush --- run.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 3e5965e..ad25b3d 100755 --- a/run.sh +++ b/run.sh @@ -25,6 +25,7 @@ usage() { echo " test:unit Run unit tests only" echo " test:integration Run integration tests only" echo " test:security Run security tests only" + echo " test:system Run system tests only (requires libvirt)" echo " test:iso Test ISO with libvirt VM (runs on host)" echo " lint Run linting checks" echo " clean Clean build artifacts" @@ -50,7 +51,7 @@ main() { -v "${BUILD_DIR}:/build" \ -e BATS_TMPDIR=/build/tmp \ "${DOCKER_IMAGE}" \ - bash -c "cd /workspace && bats tests/simple_test.bats tests/unit/ tests/integration/ tests/security/" + bash -c "cd /workspace && bats tests/simple_test.bats tests/unit/ tests/integration/ tests/security/ tests/system/" ;; test:unit) echo "Running unit tests..." @@ -79,6 +80,15 @@ main() { "${DOCKER_IMAGE}" \ bash -c "cd /workspace && bats tests/security/" ;; + test:system) + echo "Running system tests..." + docker run --rm \ + -v "${SCRIPT_DIR}:/workspace:ro" \ + -v "${BUILD_DIR}:/build" \ + -e BATS_TMPDIR=/build/tmp \ + "${DOCKER_IMAGE}" \ + bash -c "cd /workspace && bats tests/system/" + ;; lint) echo "Running linting checks..." docker run --rm \