20 lines
635 B
Bash
20 lines
635 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# Smoke profile.agent-dev — requires SANDBOXER_HOST or defaults via placement.
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
if [[ -z "${SANDBOXER_HOST:-}" ]]; then
|
||
|
|
echo "SANDBOXER_HOST not set — using profile placement fallback" >&2
|
||
|
|
fi
|
||
|
|
|
||
|
|
REPO="${SMOKE_REPO:-$(pwd)}"
|
||
|
|
echo "Smoke: profile.agent-dev repo=$REPO"
|
||
|
|
STATUS=$(sandboxer create \
|
||
|
|
--profile profile.agent-dev \
|
||
|
|
--input "repo=$REPO" \
|
||
|
|
--actor agt \
|
||
|
|
--project glas-harness)
|
||
|
|
ID=$(echo "$STATUS" | python3 -c "import sys,json; print(json.load(sys.stdin)['sandbox_id'])")
|
||
|
|
echo "Created: $ID"
|
||
|
|
sandboxer reachability show "$ID"
|
||
|
|
sandboxer destroy "$ID"
|
||
|
|
echo "OK: agent-dev smoke"
|