Files
ruflo/v2/docker-test/v2.7.40/test-cli.sh
T
rUvandClaude Opus 4.5 1b6a1971f7 feat(v3): add comprehensive v3 implementation plans and swarm architecture
- Reorganize v3/ into implementation/ subfolders:
  - planning/, architecture/, migration/, integration/
  - security/, adrs/, research/, swarm-plans/

- Add 15-agent concurrent swarm implementation plans:
  - SWARM-OVERVIEW.md: Hierarchical mesh topology, 4 phases
  - AGENT-SPECIFICATIONS.md: 15 agent configs with capabilities
  - TDD-LONDON-SCHOOL-PLAN.md: Mock-first TDD methodology
  - BENCHMARK-OPTIMIZATION.md: Performance targets (2.49x-7.47x)
  - DEPLOYMENT-PLAN.md: Release strategy, CI/CD, rollback
  - GITHUB-ISSUE-TRACKING.md: Issue workflow with agent replies

- Update .claude/settings.json with proper hooks format
- Add bash aliases for claude --dangerously-skip-permissions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 15:40:51 +00:00

50 lines
1.2 KiB
Bash

#!/bin/bash
set -e
echo "========================================="
echo "Test 1: CLI Basic Functionality"
echo "========================================="
echo "📦 Testing npx claude-flow@2.7.40..."
# Test version command
echo ""
echo "🔍 Testing --version command..."
VERSION_OUTPUT=$(npx claude-flow@2.7.40 --version 2>&1)
echo "$VERSION_OUTPUT"
if echo "$VERSION_OUTPUT" | grep -q "v2.7.40"; then
echo "✅ Version command works (2.7.40)"
else
echo "❌ FAIL: Version command failed or wrong version"
exit 1
fi
# Test help command
echo ""
echo "📖 Testing --help command..."
HELP_OUTPUT=$(npx claude-flow@2.7.40 --help 2>&1)
if echo "$HELP_OUTPUT" | grep -qE "Usage:|Commands:|Options:"; then
echo "✅ Help command works"
else
echo "❌ FAIL: Help command not working"
exit 1
fi
# Test hooks list
echo ""
echo "🪝 Testing hooks command..."
HOOKS_OUTPUT=$(npx claude-flow@2.7.40 hooks 2>&1)
if echo "$HOOKS_OUTPUT" | grep -qE "pre-task|post-task|pre-edit|post-edit"; then
echo "✅ Hooks command works"
else
echo "❌ FAIL: Hooks command not working"
exit 1
fi
echo ""
echo "✅ PASS: CLI basic functionality test completed"
echo "========================================="