record-manager-template/tests/smoke.sh
trevon 7e5c368800
Some checks failed
grade / grade (push) Failing after 1m1s
template: starter + setup + milestone + agents + workflow
2026-08-26 01:07:25 +00:00

15 lines
362 B
Bash

#!/bin/sh
# Smoke test for the Record Manager CLI.
# Usage: smoke.sh <path-to-binary>
set -eu
BIN="${1:-build/recman}"
out=$(printf 'help\nadd Ada ada@x.io 555-0100\nquit\n' | "$BIN")
echo "$out" | grep -q "Record Manager — commands"
echo "$out" | grep -q "added: Ada"
printf 'bogus\nquit\n' | "$BIN" | grep -q "unknown command"
echo "smoke tests passed"