#!/bin/bash echo "🔍 Testing Current Binary Version" echo "=================================" # Check if binary exists if [ ! -f target/release/apt-ostree ]; then echo "❌ Binary not found. Building first..." cargo build --release fi echo "1. Testing binary version and help..." ./target/release/apt-ostree --help | head -20 echo "" echo "2. Testing status command help..." ./target/release/apt-ostree status --help echo "" echo "3. Testing deploy command help..." ./target/release/apt-ostree deploy --help echo "" echo "4. Testing all available commands..." ./target/release/apt-ostree --help | grep -A 50 "SUBCOMMANDS:" | grep -E "^[[:space:]]*[a-zA-Z]" | head -10 echo "" echo "5. Testing basic status..." ./target/release/apt-ostree status echo "" echo "6. Testing status with JSON..." ./target/release/apt-ostree status --json echo "" echo "7. Testing deploy dry-run..." ./target/release/apt-ostree deploy test-commit --dry-run echo "" echo "✅ Test completed!"