Files
boshu2__agentops/tests/scripts/install-e2e-portable-timeout.bats
Boden Fuller b8c5a3761b feat(agentops): make 3.0 hookless-first
Add DDD skill-domain contracts, hook lease inventory, replacement ports, artifact-first RPI skill boundaries, and release exact-SHA validation. Demote ao inject to a compatibility adapter and remove prompt-only default hooks.
2026-05-16 09:43:08 -04:00

28 lines
865 B
Bash

#!/usr/bin/env bats
setup() {
REPO_ROOT="$(cd "$BATS_TEST_DIRNAME/../.." && pwd)"
WORKFLOW_PATH="$REPO_ROOT/.github/workflows/install-e2e.yml"
}
@test "install-e2e install-smoke uses portable timeout wrapper" {
run grep -c "run_with_timeout 60 bash tests/install/test-install-smoke.sh" "$WORKFLOW_PATH"
[ "$status" -eq 0 ]
[ "$output" -eq 2 ]
}
@test "install-e2e wrapper supports macOS gtimeout and perl fallback" {
run grep -c "command -v gtimeout" "$WORKFLOW_PATH"
[ "$status" -eq 0 ]
[ "$output" -eq 2 ]
run grep -c "perl -e 'alarm shift @ARGV" "$WORKFLOW_PATH"
[ "$status" -eq 0 ]
[ "$output" -eq 2 ]
}
@test "install-e2e no longer shells directly to GNU timeout for install-smoke" {
run grep -E "^[[:space:]]+timeout 60 bash tests/install/test-install-smoke.sh$" "$WORKFLOW_PATH"
[ "$status" -eq 1 ]
}