#!/usr/bin/env bash set -euo pipefail echo "Testing toolbox-QADocker functionality..." # Test core tools availability echo "Testing core tools..." if ! command -v zsh &> /dev/null; then echo "Error: zsh is not available" >&2 exit 1 fi if ! command -v git &> /dev/null; then echo "Error: git is not available" >&2 exit 1 fi if ! command -v docker &> /dev/null; then echo "Error: docker is not available" >&2 exit 1 fi # Test QA tools availability echo "Testing QA tools..." if ! command -v trivy &> /dev/null; then echo "Error: trivy is not available" >&2 exit 1 fi if ! command -v hadolint &> /dev/null; then echo "Error: hadolint is not available" >&2 exit 1 fi if ! command -v dockerfilelint &> /dev/null; then echo "Error: dockerfilelint is not available" >&2 exit 1 fi echo "All tests passed! toolbox-QADocker is functional."