record-manager-blank/tests/smoke.sh
trevon 1a650d4aaa
Some checks failed
grade / grade (push) Failing after 5s
push (blank)
2026-08-26 01:12:22 +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"