#!/bin/bash echo "=== Testing Debian Bootc Container Components ===" # Test basic commands echo "1. Testing basic commands:" podman run --rm localhost/debian-bootc:latest /bin/bash -c " echo 'bootc version:' && bootc --version echo 'ostree version:' && ostree --version echo 'grub version:' && grub-install --version echo 'kernel version:' && uname -r " echo -e "\n2. Testing OSTree functionality:" podman run --rm -v /tmp:/tmp localhost/debian-bootc:latest /bin/bash -c " cd /tmp mkdir -p test-ostree ostree admin init-fs /tmp/test-ostree echo 'OSTree init successful' ls -la /tmp/test-ostree/ " echo -e "\n3. Testing bootc functionality:" podman run --rm localhost/debian-bootc:latest /bin/bash -c " echo 'Testing bootc commands:' bootc --help | head -5 " echo -e "\n4. Testing systemd-boot components:" podman run --rm localhost/debian-bootc:latest /bin/bash -c " echo 'systemd-boot files:' ls -la /usr/lib/systemd/boot/ echo 'systemd-boot packages:' dpkg -l | grep systemd-boot " echo -e "\n5. Testing GRUB components:" podman run --rm localhost/debian-bootc:latest /bin/bash -c " echo 'GRUB files:' ls -la /usr/lib/grub/ echo 'GRUB packages:' dpkg -l | grep grub " echo -e "\n=== Container Test Complete ===" echo "If all tests passed, the container should be capable of creating bootable images."