#!/usr/bin/env bash set -euo pipefail if [ ! -f "tower.py" ]; then printf 'Run scripts/verify.sh from the repository root.\n' >&2 exit 1 fi printf '==> Syntax check\n' python -m py_compile tower.py printf '\n==> Status command\n' python tower.py status if [ -d "tests" ]; then printf '\n==> Unit tests\n' python -m unittest discover -q else printf '\n==> Unit tests\nNo tests directory present; skipping\n' fi printf '\nVerification passed.\n'