#!/bin/bash

echo "🚀 === Particle-OS Tools Integration Test ==="
echo ""

echo "📦 Testing apt-ostree package management..."
echo "Available commands:"
podman run --rm localhost/simple-cli:latest apt-ostree 2>&1 | grep -E "^  [a-z]+" | head -5

echo ""
echo "🔧 Testing bootupd bootloader management..."
echo "Available commands:"
podman run --rm localhost/simple-cli:latest bootupctl --help | grep -E "^  [a-z]+" | head -5

echo ""
echo "📊 System Status Check..."
echo "OSTree status:"
podman run --rm localhost/simple-cli:latest ostree --version 2>/dev/null || echo "OSTree not available"

echo ""
echo "🔍 Tool Verification:"
podman run --rm localhost/simple-cli:latest verify-tools

echo ""
echo "✅ Integration Test Complete!"
echo ""
echo "🎯 Next Steps:"
echo "1. Create a bootable disk image using bootc-image-builder"
echo "2. Test the image in QEMU"
echo "3. Verify all tools work in the booted system"
echo ""
echo "🚀 Ready for bootable image generation!"
