add whisper

This commit is contained in:
2026-03-22 22:47:51 +03:00
parent 5bb50a842d
commit 9c308cef90
4 changed files with 189 additions and 0 deletions

16
whisper/test.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/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'