#!/bin/bash ################################################################################ # run-all-tests-simple.sh # Simple comprehensive test runner for all ROM groomer test suites # # Usage: ./run-all-tests-simple.sh ################################################################################ # Get the directory of the current script SCRIPT_DIR="$(dirname "$(realpath "$0")")" # Determine the project root directory PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" cd "$SCRIPT_DIR" echo "========================================================================" echo " ROM GROOMER COMPREHENSIVE TEST SUITE" echo "========================================================================" echo # Function to run a test suite and show results run_suite() { local suite_name="$1" local script_name="$2" echo "Running: $suite_name" echo "=========================================" if [[ -f "$script_name" && -x "$script_name" ]]; then ./"$script_name" local exit_code=$? if [[ $exit_code -eq 0 ]]; then echo "✅ $suite_name: PASSED" else echo "❌ $suite_name: FAILED" fi echo return $exit_code else echo "⚠ Test suite not found: $script_name" echo return 1 fi } # Run all test suites echo "Running all test suites..." echo failed_suites=0 run_suite "Build Script Naming Standards" "test-build-script-naming.sh" || ((failed_suites++)) run_suite "Build Script Content Validation" "test-build-script-content.sh" || ((failed_suites++)) run_suite "Specific Fixes Validation" "test-specific-fixes.sh" || ((failed_suites++)) # Summary echo "========================================================================" echo " FINAL SUMMARY" echo "========================================================================" echo if [[ $failed_suites -eq 0 ]]; then echo "🎉 ALL TEST SUITES PASSED!" echo "✅ Build Script Naming Standards: PASSED" echo "✅ Build Script Content Validation: PASSED" echo "✅ Specific Fixes Validation: PASSED" echo echo "🚀 ROM groomer system is fully validated and ready!" exit 0 else echo "❌ $failed_suites test suite(s) failed." echo "Please review the failures above." exit 1 fi