aboutsummaryrefslogtreecommitdiffstats
path: root/run-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-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"