1
0

run-all.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/usr/bin/env bash
  2. # Run all skill triggering tests
  3. # Usage: ./run-all.sh
  4. set -e
  5. SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  6. PROMPTS_DIR="$SCRIPT_DIR/prompts"
  7. SKILLS=(
  8. "systematic-debugging"
  9. "test-driven-development"
  10. "writing-plans"
  11. "dispatching-parallel-agents"
  12. "executing-plans"
  13. "requesting-code-review"
  14. )
  15. echo "=== Running Skill Triggering Tests ==="
  16. echo ""
  17. PASSED=0
  18. FAILED=0
  19. RESULTS=()
  20. for skill in "${SKILLS[@]}"; do
  21. prompt_file="$PROMPTS_DIR/${skill}.txt"
  22. if [ ! -f "$prompt_file" ]; then
  23. echo "⚠️ SKIP: No prompt file for $skill"
  24. continue
  25. fi
  26. echo "Testing: $skill"
  27. if "$SCRIPT_DIR/run-test.sh" "$skill" "$prompt_file" 3 2>&1 | tee /tmp/skill-test-$skill.log; then
  28. PASSED=$((PASSED + 1))
  29. RESULTS+=("✅ $skill")
  30. else
  31. FAILED=$((FAILED + 1))
  32. RESULTS+=("❌ $skill")
  33. fi
  34. echo ""
  35. echo "---"
  36. echo ""
  37. done
  38. echo ""
  39. echo "=== Summary ==="
  40. for result in "${RESULTS[@]}"; do
  41. echo " $result"
  42. done
  43. echo ""
  44. echo "Passed: $PASSED"
  45. echo "Failed: $FAILED"
  46. if [ $FAILED -gt 0 ]; then
  47. exit 1
  48. fi