#!/usr/bin/env bash set -euo pipefail echo "Running tests: build and smoke import/instantiate..." python3 -m build >/tmp/build.log 2>&1 || { echo 'Build failed'; tail -n +1 /tmp/build.log; exit 1; } echo "Smoke test: import modules and create objects..." python3 - << 'PY' from hopemesh.sdk import make_local_problem, make_shared_variables, make_plan_delta lp = make_local_problem("RegionA Allocation", region="RegionA") sv = make_shared_variables("example", {"stock": 100}) pd = make_plan_delta("pd-001", [{"allocate": {"region": "RegionA", "qty": 10}}]) print(lp) print(sv) print(pd) print("OK") PY echo "All tests passed."