17 lines
507 B
Bash
Executable File
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'
|