mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
18 lines
602 B
Bash
Executable File
18 lines
602 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
setup() {
|
|
REPO_ROOT="$(cd "$BATS_TEST_DIRNAME/.." && pwd)"
|
|
}
|
|
|
|
@test "normative CLI README rejects retired runtime paths" {
|
|
run rg -n 'ao (factory start|rpi phased|codex stop|orchestrate)|/rpi ' "$REPO_ROOT/cli/README.md"
|
|
[ "$status" -eq 1 ]
|
|
}
|
|
|
|
@test "explicitly historical prose remains outside the normative rejection" {
|
|
fixture="$BATS_TEST_TMPDIR/historical.md"
|
|
printf '%s\n' '<!-- agentops: historical -->' 'The retired `ao factory start` path existed before 3.0.' >"$fixture"
|
|
run rg -n '^ao (factory start|rpi phased|codex stop)' "$fixture"
|
|
[ "$status" -eq 1 ]
|
|
}
|