aboutsummaryrefslogtreecommitdiffstats
path: root/run-tests.sh
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-06-01 23:26:46 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-06-01 23:26:46 +0100
commit87150ee76b2511a644e4b519094da539d3618009 (patch)
tree1a413936c195d22caee592b2d4a6ccd03564c922 /run-tests.sh
parent017f336a5121897cd64179e84ded15e1dd37bd92 (diff)
parent5555d73c6b623d8ef484665784d2cd9cc1be3f7f (diff)
downloadfiglet-87150ee76b2511a644e4b519094da539d3618009.tar.gz
Merge tag 'upstream/2.2.5'
Upstream version 2.2.5
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-xrun-tests.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 7e33405..26d2581 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -15,7 +15,7 @@ run_test() {
test_cmd=$3
echo >> $LOGFILE
- echo -n "Run test $test_num: ${test_dsc}... " | tee -a $LOGFILE
+ printf "Run test $test_num: ${test_dsc}... " | tee -a $LOGFILE
echo >> $LOGFILE
echo "Command: $test_cmd" >> $LOGFILE
eval "$test_cmd" > "$OUTPUT" 2>> $LOGFILE
@@ -32,19 +32,18 @@ run_test() {
result=0
fail=0
$CMD -v > $LOGFILE
-$CMD -f small "Test results" | tee -a $LOGFILE
file="$TESTDIR/input.txt"
cmd="cat $file|$CMD"
-echo -n "Default font dir: "; $CMD -I2
+printf "Default font dir: "; $CMD -I2
if [ -n "$FONTDIR" ]; then
FIGLET_FONTDIR="$FONTDIR"
export FIGLET_FONTDIR
fi
-echo -n "Current font dir: "; $CMD -I2
-echo -n "Default font: "; $CMD -I3
-echo
+printf "Current font dir: "; $CMD -I2
+printf "Default font: "; $CMD -I3
+$CMD -f small "Test results" | tee -a $LOGFILE
run_test 001 "showfigfonts output" "./showfigfonts"
run_test 002 "text rendering in all fonts" \
@@ -73,6 +72,8 @@ run_test 021 "paragraph mode long line output" "$cmd -p -w250"
run_test 022 "short line output" "$cmd -w5"
run_test 023 "kerning paragraph centered mode (small)" "$cmd -kpc -fsmall"
run_test 024 "list of control files" "ls fonts/*flc"
+run_test 025 "uskata control file" "printf 'ABCDE'|$CMD -fbanner -Cuskata"
+run_test 026 "jis0201 control file" "printf '\261\262\263\264\265'|$CMD -fbanner -Cjis0201"
rm -f "$OUTPUT"