Make test script a bit more portable

Replaced mktemp which can be different/absent in some systems with
static filenames which should be good enough for our tests.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka 2012-06-03 13:36:38 -03:00
parent 3851863336
commit 1c1293b3e3

@ -4,7 +4,7 @@ LC_ALL=POSIX
export LC_ALL
TESTDIR=tests
OUTPUT=`mktemp`
OUTPUT=.test-output.txt
LOGFILE=tests.log
CMD=./figlet
FONTDIR="$1"
@ -67,7 +67,7 @@ run_test 018 "tlf2 overlap centered mode" "$cmd -oc -f tests/emboss"
run_test 019 "tlf2 full-width flush-left right-to-left mode" \
"$cmd -WRl -f tests/emboss"
run_test 020 "specify font directory" \
"X=`mktemp -d`;cp fonts/script.flf \$X/foo.flf;$cmd -d\$X -ffoo;rm -Rf \$X"
"X=.t;mkdir \$X;cp fonts/script.flf \$X/foo.flf;$cmd -d\$X -ffoo;rm -Rf \$X"
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"