add whisper
This commit is contained in:
16
whisper/test.sh
Executable file
16
whisper/test.sh
Executable 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'
|
||||
Reference in New Issue
Block a user