#!/bin/bash #============================================================================== # setup_dev_test.sh #============================================================================== # # DESCRIPTION: # Test script for setup_dev.sh functionality. # Validates development environment setup without modifying the actual system. # # USAGE: # setup_dev_test.sh [OPTIONS] # # OPTIONS: # -v, --verbose Enable verbose test output # --stop-on-failure Stop on first test failure # -h, --help Show this help message # #============================================================================== # Source the test framework, exports SCRIPT_PATH source "$(git rev-parse --show-toplevel)/scripts/tests/test_lib.sh" # Define test functions run_tests() { test_section "Help and Usage" test_case "shows help message" \ "--help" \ "USAGE:" \ true test_case "shows error for invalid option" \ "--invalid-option" \ "Unknown option" \ false test_section "Argument Processing" test_case "accepts verbose flag" \ "--verbose --help" \ "USAGE:" \ true } # Start the test framework and run tests start_tests "$@" run_tests