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 \