Files
dbtool-cli-v1/scripts/qa/test-failure-path-fixtures.sh
Paperclip CTO d5f69462b0
Some checks failed
release-smoke / macos-13 / x86_64-apple-darwin (push) Has been cancelled
release-smoke / ubuntu-latest / x86_64-unknown-linux-gnu (push) Has been cancelled
release-smoke / windows-latest / x86_64-pc-windows-msvc (push) Has been cancelled
feat(usable): integrate current dbtool implementation snapshot
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-02 08:26:18 +00:00

42 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if [ "$#" -gt 1 ]; then
echo "usage: scripts/qa/test-failure-path-fixtures.sh [format|sidecar|all]" >&2
exit 2
fi
scope="${1:-all}"
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
run_fixture() {
local label="$1"
local script_path="$2"
echo "==> ${label}"
"$script_path"
}
case "$scope" in
format)
run_fixture "failure-path markdown format fixture" \
"$root_dir/scripts/qa/test-failure-path-evidence-format.sh"
;;
sidecar)
run_fixture "failure-path sidecar fixture" \
"$root_dir/scripts/qa/test-failure-path-evidence-sidecar.sh"
;;
all)
run_fixture "failure-path markdown format fixture" \
"$root_dir/scripts/qa/test-failure-path-evidence-format.sh"
run_fixture "failure-path sidecar fixture" \
"$root_dir/scripts/qa/test-failure-path-evidence-sidecar.sh"
;;
*)
echo "error: scope must be one of: format, sidecar, all" >&2
exit 3
;;
esac
echo "all requested failure-path fixtures passed"