srs/openclaw/skills/st-develop/scripts/verify.sh
Winlin 024342910d
OpenClaw: add and refine ST knowledge-base and learning/review skills (#4643)
- Add a comprehensive ST knowledge base document:
- openclaw/memory/srs-coroutines.md
- Add ST-focused developer skill:
- openclaw/skills/st-develop/SKILL.md
- openclaw/skills/st-develop/scripts/verify.sh
- Add KB workflow skills that support ST documentation quality and
learning:
- openclaw/skills/kb-review/SKILL.md
- openclaw/skills/srs-learn/SKILL.md
- Update openclaw/skills/srs-support/SKILL.md to use dynamic SRS_ROOT
path resolution, improving portability for KB/source
 loading.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
2026-03-05 09:57:08 -05:00

27 lines
592 B
Bash
Executable File

#!/bin/bash
# Verify ST changes by building and running unit tests.
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Navigate: scripts/ -> st-develop/ -> skills/ -> openclaw/ -> srs/
SRS_ROOT="$(cd "$SCRIPT_DIR/../../../.." && pwd)"
ST_DIR="$SRS_ROOT/trunk/3rdparty/st-srs"
if [[ ! -d "$ST_DIR" ]]; then
echo "Error: ST_DIR does not exist: $ST_DIR" >&2
exit 1
fi
echo "ST source: $ST_DIR"
CMAKE_DIR="$SRS_ROOT/cmake"
BUILD_DIR="$SRS_ROOT/cmake/build"
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake --build . --target st_utest
./st-build/st_utest