Files
server-toolset/whisper/test.sh
2026-03-22 22:47:51 +03:00

17 lines
507 B
Bash
Executable File

#!/bin/sh
# manual smoke tests for whisper via telegram
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
echo '--- test 1: plain text ---\n'
"$SCRIPT_DIR/whisper" -t telegram -m "Hello from whisper test" || true
echo '\n--- test 2: HTML formatting ---\n'
"$SCRIPT_DIR/whisper" -t telegram -m "<b>bold</b> <i>italic</i> <code>code</code>" || true
echo '\n--- test 3: multiline ---\n'
MSG=$(printf 'Line one\nLine two\nLine three')
"$SCRIPT_DIR/whisper" -t telegram -m "$MSG" || true
echo '\nAll tests done.\n'