#!/usr/bin/env bash # Teardown the XAMXAM podman test environment. # Stops + removes the server and cli services and the xamxam-test compose # network. The generated test keypair under test-env/keys/ is kept unless you # pass --keys to also remove it. set -euo pipefail cd "$(cd "$(dirname "$0")/.." && pwd)" COMPOSE="podman compose" echo "▶ Stopping and removing test environment…" $COMPOSE down --remove-orphans --volumes --rmi local 2>/dev/null || $COMPOSE down if [ "${1:-}" = "--keys" ]; then rm -rf keys echo "✓ Removed test-env/keys/" fi echo "✓ Teardown complete."