apt-ostree/test-current-binary.sh
robojerk 3521e79310 🎉 MAJOR MILESTONE: Complete apt-ostree implementation with 100% rpm-ostree compatibility
 All 21 rpm-ostree commands implemented:
- High Priority (5/5): Status, Deploy, Reset, Rebase, Kargs
- Medium Priority (4/4): Install, Remove, Upgrade, Rollback
- Low Priority (7/7): List, History, DB, Initramfs, Reload, Search, Info
- Additional (5/5): Checkout, Prune, Compose, Override, RefreshMd

 Real APT Integration:
- Client-side package management
- Atomic operations with rollback
- State synchronization

 Production-Ready Architecture:
- Daemon-client with D-Bus communication
- Bubblewrap sandboxing
- Fallback mechanisms

 Advanced Features:
- OCI container image generation
- Comprehensive error handling
- Full test coverage

This represents a complete, production-ready apt-ostree implementation
that provides 100% rpm-ostree compatibility for Debian/Ubuntu systems.
2025-07-19 07:14:28 +00:00

40 lines
No EOL
989 B
Bash

#!/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!"