Files
yaze/scripts/agents/test-http-api.sh
scawful e36d81f357 fix(linux): add missing yaze_gfx_render dependency to yaze_gfx_debug
Fixes linker error on Linux where yaze_gfx_debug.a (performance_dashboard.cc)
was calling AtlasRenderer::Get() and AtlasRenderer::GetStats() but wasn't
linking against yaze_gfx_render which contains atlas_renderer.cc.

Root cause: yaze_gfx_debug was only linking to yaze_gfx_types and
yaze_gfx_resource, missing the yaze_gfx_render dependency.

This also fixes the undefined reference errors for HttpServer methods
which were already properly included in the agent.cmake source list.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 01:38:55 -05:00

29 lines
664 B
Bash
Executable File

#!/usr/bin/env bash
# Basic health check for the HTTP API server.
# Usage: scripts/agents/test-http-api.sh [host] [port]
set -euo pipefail
HOST="${1:-127.0.0.1}"
PORT="${2:-8080}"
URL="http://${HOST}:${PORT}/api/v1/health"
if ! command -v curl >/dev/null 2>&1; then
echo "error: curl is required to test the HTTP API" >&2
exit 1
fi
echo "Checking HTTP API health endpoint at ${URL}"
for attempt in {1..10}; do
if curl -fsS "${URL}" >/dev/null; then
echo "HTTP API responded successfully (attempt ${attempt})"
exit 0
fi
echo "Attempt ${attempt} failed; retrying..."
sleep 1
done
echo "error: HTTP API did not respond at ${URL}" >&2
exit 1